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

remove-identity in filesystem-realm fails when executed before filesystem-realm removal in the same batch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • Security
    • None
    • Hide

      1. Start wildfly server
      2. execute this in CLI:

      batch
      /subsystem=elytron/filesystem-realm=exampleFsRealm:add(path=fs-realm-users,relative-to=jboss.server.config.dir)
      /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity(identity=user)
      run-batch

      3. Try to execute the following in CLI:

      batch
      /subsystem=elytron/filesystem-realm=exampleFsRealm:remove-identity(identity=user)
      /subsystem=elytron/filesystem-realm=exampleFsRealm:remove()
      run-batch

      I'm attaching both CLI files

      Show
      1. Start wildfly server 2. execute this in CLI: batch /subsystem=elytron/filesystem-realm=exampleFsRealm:add(path=fs-realm-users,relative-to=jboss.server.config.dir) /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity(identity=user) run-batch 3. Try to execute the following in CLI: batch /subsystem=elytron/filesystem-realm=exampleFsRealm:remove-identity(identity=user) /subsystem=elytron/filesystem-realm=exampleFsRealm:remove() run-batch I'm attaching both CLI files

      Elytron filesystem-realm has an remove-identity operation. If executed in the same batch with later removal of said filesystem-realm, the remove-identity operation will fail with error: filesystem-realm not found.

        1. add.cli
          0.2 kB
          Diana Krepinska
        2. remove.cli
          0.2 kB
          Diana Krepinska

              pberan@redhat.com Petr Beran
              dvilkola@redhat.com Diana Krepinska
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: