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

[GSS](7.1.z) HAL-1457 - Console 'Failed to create security context' if there are no data-sources

    XMLWordPrintable

Details

    • CR1
    • 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
    • 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
    • EAP 7.1.3

    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
      }
      

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-bmaxwell Brad Maxwell
              Petr Adamec Petr Adamec
              Petr Adamec Petr Adamec
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: