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

ReadResourceNameOperationStepHandler does not check if the resource exists before returning the resource name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.0.0.Beta3
    • None
    • Management
    • None

      Trying to read the category attribute on a nonexistent logger results in success:

      [standalone@localhost:9990 /] /subsystem=logging/logger=aaaaaa:read-attribute(name=category)
      {
          "outcome" => "success",
          "result" => "aaaaaa"
      }
      

      Any other attributes can't be read and the operation correctly fails, e.g.:

      [standalone@localhost:9990 /] /subsystem=logging/logger=aaaaaab:read-attribute(name=level
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0216: Management resource '[
          (\"subsystem\" => \"logging\"),
          (\"logger\" => \"aaaaaab\")
      ]' not found",
          "rolled-back" => true
      }
      

      This behavior is confusing, the operation should fail for any attribute on a nonexistent logger.

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: