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

Chao Wang (Jira) issues at jboss.org
Thu Nov 29 23:27:00 EST 2018


    [ https://issues.jboss.org/browse/WFCORE-4241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668398#comment-13668398 ] 

Chao Wang commented on WFCORE-4241:
-----------------------------------

Cli output error:

{noformat}
The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the er
ror): 
WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
Step: step-1
Operation: /subsystem=elytron/filesystem-realm=exampleFsRealm:remove-identity(identity=user)
Failure: WFLYCTL0216: Management resource '[
    ("subsystem" => "elytron"),
    ("filesystem-realm" => "exampleFsRealm")
]' not found
{noformat}

Looking at [~jmesnil]'s comment in JBEAP-3187, I think this error happens for the same reason: [RemoveIdentityHandler is a RuntimeOnlyHandler|https://github.com/wildfly/wildfly-core/blob/7.0.0.CR1/elytron/src/main/java/org/wildfly/extension/elytron/ModifiableRealmDecorator.java#L148], named filesystem-realm model has been removed in 2nd operation Model step before 1st operation Runtime step.

> 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 remove-identity operation 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