[jboss-jira] [JBoss JIRA] (WFLY-2271) A problem setting include-all on a role mapping is failing getting rolled back.

RH Bugzilla Integration (JIRA) issues at jboss.org
Sun Dec 15 11:18:40 EST 2013


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

RH Bugzilla Integration commented on WFLY-2271:
-----------------------------------------------

mark yarborough <myarboro at redhat.com> changed the Status of [bug 1017199|https://bugzilla.redhat.com/show_bug.cgi?id=1017199] from VERIFIED to CLOSED
                
> A problem setting include-all on a role mapping is failing getting rolled back.
> -------------------------------------------------------------------------------
>
>                 Key: WFLY-2271
>                 URL: https://issues.jboss.org/browse/WFLY-2271
>             Project: WildFly
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>            Reporter: Darran Lofthouse
>            Assignee: Darran Lofthouse
>             Fix For: 8.0.0.CR1
>
>
> As a side effect of another bug the following failure occurs: -
> {code}
> [domain at localhost:9990 /] ./core-service=management/access=authorization/role-mapping=test:add
> {
>     "outcome" => "success",
>     "result" => undefined,
>     "server-groups" => {"main-server-group" => {"host" => {"master" => {
>         "server-one" => {"response" => {"outcome" => "success"}},
>         "server-two" => {"response" => {"outcome" => "success"}}
>     }}}}
> }
> [domain at localhost:9990 /] ./core-service=management/access=authorization/role-mapping=test:write-attribute(name=include-all, value=true)
> {
>     "outcome" => "failed",
>     "failure-description" => {"domain-failure-description" => "JBAS014749: Operation handler failed: JBAS013470: Unknown role 'TEST'"},
>     "rolled-back" => true
> }
> {code}
> Roll back however fails with this error: -
> {code}
> [Host Controller] 11:47:25,216 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 11) JBAS014603:  caught exception attempting to revert operation write-attribute at address [
> [Host Controller]     ("core-service" => "management"),
> [Host Controller]     ("access" => "authorization"),
> [Host Controller]     ("role-mapping" => "test")
> [Host Controller] ]: java.lang.IllegalArgumentException
> [Host Controller] 	at org.jboss.dmr.ModelValue.asBoolean(ModelValue.java:66) [jboss-dmr-1.2.0.Final.jar:1.2.0.Final]
> [Host Controller] 	at org.jboss.dmr.ModelNode.asBoolean(ModelNode.java:262) [jboss-dmr-1.2.0.Final.jar:1.2.0.Final]
> [Host Controller] 	at org.jboss.as.domain.management.access.RoleIncludeAllWriteAttributeHander.revertUpdateToRuntime(RoleIncludeAllWriteAttributeHander.java:65)
> [Host Controller] 	at org.jboss.as.domain.management.access.RoleIncludeAllWriteAttributeHander.revertUpdateToRuntime(RoleIncludeAllWriteAttributeHander.java:35)
> {code}
> Two issues here: -
> 1 - "rolled-back" should not be true as it failed.
> 2 - The failure during rollback needs to be fixed, the default for this attribute if not set is 'false'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list