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

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

XMLWordPrintable

    • 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
    • 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

      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
      }
      

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: