Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1457

Console 'Failed to create security context' if there are no data-sources

    Details

    • Steps to Reproduce:
      Hide

      unzip -d $JBOSS_HOME/ reproducer-overlay.zip
      ./bin/domain.sh
      http://localhost:9990
      Login: admin / redhat1!
      Click Runtime / Server Groups / main-server-group / server-one / Subsystems / Datasources / View

      Show
      unzip -d $JBOSS_HOME/ reproducer-overlay.zip ./bin/domain.sh http://localhost:9990 Login: admin / redhat1! Click Runtime / Server Groups / main-server-group / server-one / Subsystems / Datasources / View
    • Workaround Description:
      Hide

      Add a dummy data-source or the ExampleDS back to the datasource subsystem as a workaround

      Show
      Add a dummy data-source or the ExampleDS back to the datasource subsystem as a workaround

      Description

      In domain mode, if you add a xa-data-source and remove all of the data-sources, and reload server-one as requested. Then in the web console - Runtime / Server Group / main-server-group / server-one / Subsystems / Datasources / View gives error "Failed to create security context":

      Failed to create security context
      Unexpected HTTP response: 500
      
      Request
      {
          "operation" => "composite",
          "address" => [],
          "steps" => [
              {
                  "address" => [
                      ("host" => "master"),
                      ("server" => "server-one"),
                      ("subsystem" => "datasources"),
                      ("data-source" => "*"),
                      ("statistics" => "pool")
                  ],
                  "operation" => "read-resource-description",
                  "operations" => true,
                  "access-control" => "combined-descriptions",
                  "locale" => "en",
                  "recursive-depth" => 2,
                  "include-aliases" => true
              },
              {
                  "address" => [
                      ("host" => "master"),
                      ("server" => "server-one"),
                      ("subsystem" => "datasources"),
                      ("xa-data-source" => "*")
                  ],
                  "operation" => "read-resource-description",
                  "operations" => true,
                  "access-control" => "combined-descriptions",
                  "locale" => "en",
                  "recursive-depth" => 2,
                  "include-aliases" => true
              },
              {
                  "address" => [
                      ("host" => "master"),
                      ("server" => "server-one"),
                      ("subsystem" => "datasources"),
                      ("data-source" => "*")
                  ],
                  "operation" => "read-resource-description",
                  "operations" => true,
                  "access-control" => "combined-descriptions",
                  "locale" => "en",
                  "recursive-depth" => 2,
                  "include-aliases" => true
              }
          ]
      }
      
      Response
      
      Internal Server Error
      {
          "outcome" => "failed",
          "result" => {
              "step-1" => {
                  "outcome" => "failed",
                  "result" => [],
                  "failure-description" => "WFLYCTL0030: No resource definition is registered for address [
          (\"subsystem\" => \"datasources\"),
          (\"data-source\" => \"*\"),
          (\"statistics\" => \"pool\")
      ]",
                  "rolled-back" => true
              },
              "step-2" => {"outcome" => undefined},
              "step-3" => {"outcome" => undefined}
          },
          "failure-description" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYCTL0030: No resource definition is registered for address [
          (\"subsystem\" => \"datasources\"),
          (\"data-source\" => \"*\"),
          (\"statistics\" => \"pool\")
      ]"}},
          "rolled-back" => true
      }
      

      It looks like it is calling this command below which fails:

      [domain@localhost:9990 /] /host=master/server=server-one/subsystem=datasources/data-source=*/statistics=pool:read-resource-description()
      {
          "outcome" => "failed",
          "result" => [],
          "failure-description" => "WFLYCTL0030: No resource definition is registered for address [
          (\"subsystem\" => \"datasources\"),
          (\"data-source\" => \"*\"),
          (\"statistics\" => \"pool\")
      ]",
          "rolled-back" => true
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soul2zimate Chao Wang
                  Reporter:
                  soul2zimate Chao Wang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: