[jboss-jira] [JBoss JIRA] (WFCORE-1122) Attribute defined as ObjectListAttributeDefinition always mandatory

Darran Lofthouse (JIRA) issues at jboss.org
Tue Nov 10 12:28:00 EST 2015


Darran Lofthouse created WFCORE-1122:
----------------------------------------

             Summary: Attribute defined as ObjectListAttributeDefinition always mandatory
                 Key: WFCORE-1122
                 URL: https://issues.jboss.org/browse/WFCORE-1122
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 2.0.1.Final
            Reporter: Darran Lofthouse
            Assignee: Darran Lofthouse
             Fix For: 3.0.0.Alpha1


Take the following attribute definition: -

{noformat}
    static final ObjectListAttributeDefinition CREDENTIALS = new ObjectListAttributeDefinition.Builder(ElytronDescriptionConstants.CREDENTIALS, CREDENTIAL)
        .setAllowNull(true)
        .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
        .build();
{noformat}

Existing subsystem tests do not set this and the following error is reported: -

{noformat}
Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.8 sec <<< FAILURE! - in org.wildfly.extension.elytron.SubsystemParsingTestCase
testParseAndMarshalModel_Realms(org.wildfly.extension.elytron.SubsystemParsingTestCase)  Time elapsed: 0.015 sec  <<< ERROR!
java.lang.IllegalArgumentException: WFLYCTL0231: Required parameter credentials is not present. {"operation" => "add","address" => [("subsystem" => "elytron"),("properties-realm" => "RealmFive")],"users-properties" => {"path" => "my.properties"}}
	at org.jboss.as.controller.operations.validation.OperationValidator.checkAllRequiredPropertiesArePresent(OperationValidator.java:207)
	at org.jboss.as.controller.operations.validation.OperationValidator.validateOperation(OperationValidator.java:138)
	at org.jboss.as.model.test.ModelTestModelControllerService.boot(ModelTestModelControllerService.java:334)
	at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:336)
	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
	at java.lang.Thread.run(Thread.java:745)

{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list