[jboss-jira] [JBoss JIRA] (WFLY-2271) A problem setting include-all on a role mapping is failing getting rolled back.
Darran Lofthouse (JIRA)
jira-events at lists.jboss.org
Wed Oct 9 07:00:03 EDT 2013
Darran Lofthouse created WFLY-2271:
--------------------------------------
Summary: 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: Bug
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