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

Reading of identity from security domain causes NPE

XMLWordPrintable

    • Hide

      Connect to the CLI and run below commands:

      /subsystem=elytron/filesystem-realm=myFsRealm:add(path=my-fs-realm-users,relative-to=jboss.server.config.dir)

      /subsystem=elytron/filesystem-realm=myFsRealm:add-identity(identity=myIdentity)

      /subsystem=elytron/security-domain=mySD:add(realms=[

      {realm=myFsRealm}

      ])

      /subsystem=elytron/security-domain=mySD:read-identity(name=myIdentity)

      This casues the NPE:
      {
      "outcome" => "failed",
      "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException",
      "rolled-back" => true
      }

      Show
      Connect to the CLI and run below commands: /subsystem=elytron/filesystem-realm=myFsRealm:add(path=my-fs-realm-users,relative-to=jboss.server.config.dir) /subsystem=elytron/filesystem-realm=myFsRealm:add-identity(identity=myIdentity) /subsystem=elytron/security-domain=mySD:add(realms=[ {realm=myFsRealm} ]) /subsystem=elytron/security-domain=mySD:read-identity(name=myIdentity) This casues the NPE: { "outcome" => "failed", "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException", "rolled-back" => true }

      Security domain in the elytron subsystem has operation `read-identity`. Description of this opearation is the following: `Reads an identity from a security domain if it exists.`

      However, this operation causes NPE when called on the security domain backed by the filesystem realm (see steps to reproduce) or jdbc realm. This issue is to address that.

              dvilkola@redhat.com Diana Krepinska (Inactive)
              dvilkola@redhat.com Diana Krepinska (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: