Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5609

AbstractOperationContext#getCurrentOperationName() does not return the name of the operation

    XMLWordPrintable

Details

    Description

      In WFCORE-2687, the AbstractOperationContext#getCurrentOperationName() was implemented and returns the "name" field of the operation model node.

      This is not correct. In our DMR representation of an operation, the name of the operation is held by org.jboss.as.controller.descriptions.ModelDescriptionConstants#OP ("operation").

      The current implementation of getCurrentOperationName() returns the value of an eventual "name" parameter of the operation which is not the intent of the method.

      We should check usage of org.jboss.as.controller.OperationContext#getCurrentOperationName in WildFly Core and Full and make sure to fix them as we fix the implementation in AbstractOperationContext#getCurrentOperationName()

      Attachments

        Activity

          People

            lvydra Lukas Vydra
            jmesnil1@redhat.com Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: