[
https://issues.jboss.org/browse/WFLY-7840?page=com.atlassian.jira.plugin....
]
Jan Kalina commented on WFLY-7840:
----------------------------------
After adding *setAllowNull(true)* into ObjectListAttributeDefinition declaration the
attribute is optional correctly.
Without it of with *setAllowNull(false)* it is required (correct), but
read-resource-description gives incorrectly:
{code}
"match-rules" => {
"required" => false,
"nillable" => true,
{code}
which I consider kernel bug, [~brian.stansberry].
elytron: authentication-context validation errors
-------------------------------------------------
Key: WFLY-7840
URL:
https://issues.jboss.org/browse/WFLY-7840
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Claudio Miranda
Assignee: Jan Kalina
elytron resource authentication-context has attribute match-rules marked as
required=false and nillable=true, but fail to add an authentication-context with no
match-rules attribute
{code}
/profile=default/subsystem=elytron/authentication-context=test123:add
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" =>
"WFLYCTL0155: 'match-rules' may not be null"},
"rolled-back" => true
}
{code}
Resource description snippet
{code}
"match-rules" => {
"type" => LIST,
"description" => "The match-rules for this authentication
context.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)