[jboss-jira] [JBoss JIRA] (WFCORE-4241) remove-identity in filesystem-realm fails when executed before filesystem-realm removal in the same batch

Diana Vilkolakova (Jira) issues at jboss.org
Thu Nov 29 07:26:04 EST 2018


     [ https://issues.jboss.org/browse/WFCORE-4241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Diana Vilkolakova updated WFCORE-4241:
--------------------------------------
    Steps to Reproduce: 
1. Start wildfly server
2. execute this in CLI: 
{quote} 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{quote}
3. Try to execute the following in CLI:
{quote} batch
 /subsystem=elytron/filesystem-realm=exampleFsRealm:remove-identity(identity=user) 
 /subsystem=elytron/filesystem-realm=exampleFsRealm:remove()
 run-batch{quote}

I'm attaching both CLI files

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

I'm attaching both CLI files



> remove-identity in filesystem-realm fails when executed before filesystem-realm removal in the same batch
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-4241
>                 URL: https://issues.jboss.org/browse/WFCORE-4241
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Security
>            Reporter: Diana Vilkolakova
>            Priority: Major
>         Attachments: add.cli, remove.cli
>
>
> Elytron filesystem-realm has an {{remove-identity}} operation. If executed in the same batch with later removal of said filesystem-realm, the batch will fail with error: filesystem-realm not found.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list