[
https://issues.jboss.org/browse/WFCORE-4241?page=com.atlassian.jira.plugi...
]
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...],
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)