Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11853

Unhelpful failure message if transaction subsystem 'delete' op is run against a non-existent resource on a domain mode server

    Details

      Description

      In a domain if you run the 'delete' op against an invalid transaction resource you get an invalid failure message about trying to directly call a write op on a server:

      [domain@localhost:9990 /] /host=master/server=server-one/subsystem=transactions/log-store=log-store/transactions=0\:ffff0afc4420\:3b2568af\:594b9528\::delete()
      {
          "outcome" => "failed",
          "result" => undefined,
          "failure-description" => "WFLYCTL0249: Operation 'delete' targeted at resource '[
          (\"subsystem\" => \"transactions\"),
          (\"log-store\" => \"log-store\"),
          (\"transactions\" => \"0:ffff0afc4420:3b2568af:594b9528:\")
      ]' was directly invoked by a user. User operations are not permitted to directly update the persistent configuration of a server in a managed domain.",
          "rolled-back" => true
      }
      

      This is because if the resource doesn't exist, the check for mods to non-runtime-only resources is checking the MRR to see if it's runtime only. But this MRR doesn't declare it is so the kernel thinks a direct write to the model is happening and rejects that.

      A fix results in the appropriate failure for invoking against a non-existent resource:

      [domain@localhost:9990 /] /host=master/server=server-one/subsystem=transactions/log-store=log-store/transactions=0\:ffff0afc4420\:3b2568af\:594b9528\::delete()
      {
          "outcome" => "failed",
          "result" => undefined,
          "failure-description" => "WFLYCTL0216: Management resource '[
          (\"subsystem\" => \"transactions\"),
          (\"log-store\" => \"log-store\"),
          (\"transactions\" => \"0:ffff0afc4420:3b2568af:594b9528:\")
      ]' not found",
          "rolled-back" => true
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  brian.stansberry Brian Stansberry
                  Reporter:
                  brian.stansberry Brian Stansberry
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: