[jboss-jira] [JBoss JIRA] (WFLY-7388) NullPointerException Adding FileSystemRealm with identities in a batch.
Jan Kalina (JIRA)
issues at jboss.org
Wed Nov 2 09:49:00 EDT 2016
[ https://issues.jboss.org/browse/WFLY-7388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13316084#comment-13316084 ]
Jan Kalina edited comment on WFLY-7388 at 11/2/16 9:48 AM:
-----------------------------------------------------------
[~brian.stansberry] The spaces in --commands are escaped - the argument continues - it is equivalent of:
{code:java}
--commands="embed-server --server-config=standalone-elytron.xml,run-batch --file=/opt/jboss/commands.txt,stop-embedded-server"
{code}
was (Author: honza889):
[~brian.stansberry] The spaces in --commands are escaped - the argument continues - it is equivalent of:
*--commands="embed-server --server-config=standalone-elytron.xml,run-batch --file=/opt/jboss/commands.txt,stop-embedded-server"*
> NullPointerException Adding FileSystemRealm with identities in a batch.
> -----------------------------------------------------------------------
>
> Key: WFLY-7388
> URL: https://issues.jboss.org/browse/WFLY-7388
> Project: WildFly
> Issue Type: Bug
> Components: Security
> Reporter: Darran Lofthouse
> Assignee: Jan Kalina
> Priority: Critical
> Fix For: 11.0.0.Alpha1
>
>
> {code:java}
> /subsystem=elytron/filesystem-realm=exampleFsRealm:add(path=fs-realm-users,relative-to=jboss.server.config.dir)
> /subsystem=elytron/filesystem-realm=exampleFsRealm/identity=jduke at JBOSS.ORG:add()
> /subsystem=elytron/filesystem-realm=exampleFsRealm/identity=jduke at JBOSS.ORG:add-attribute(name=Roles, value=["Admin","Guest"])
> /subsystem=elytron/simple-role-decoder=from-roles-attribute:add(attribute=Roles)
> /subsystem=elytron/security-domain=exampleFsSD:add(realms=[{realm=exampleFsRealm,role-decoder=from-roles-attribute}],default-realm=exampleFsRealm,permission-mapper=login-permission-mapper)
> {code}
> {noformat}
> Step 21 : RUN /opt/jboss/wildfly/dist/target/wildfly-11.0.0.Alpha1-SNAPSHOT/bin/jboss-cli.sh --commands=embed-server\ --server-config=standalone-elytron.xml,run-batch\ --file=/opt/jboss/commands.txt,stop-embedded-server
> ---> Running in fb3e83746136
> The batch failed with the following error: : {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => "WFLYCTL0158: Operation handler failed: java.lang.NullPointerException"}}
> {noformat}
> NullPointerException experienced randomly, initially this sounds like the service is not fully up by the time the first command completes.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list