]
Yeray Borges moved ELY-1279 to WFCORE-3518:
-------------------------------------------
Project: WildFly Core (was: WildFly Elytron)
Key: WFCORE-3518 (was: ELY-1279)
principal-query attribute of jdbc-realm is required but description
says false
------------------------------------------------------------------------------
Key: WFCORE-3518
URL:
https://issues.jboss.org/browse/WFCORE-3518
Project: WildFly Core
Issue Type: Bug
Reporter: Claudio Miranda
Assignee: Yeray Borges
jdbc-realm description, for principal-query attribute says it is required=false,
nillable=true, but that is false, because a jdbc-realm cannot be added without a
principal-query.
{code}
/profile=full/subsystem=elytron/jdbc-realm=*:read-resource-description
{
"outcome" => "success",
"result" => [{
"address" => [
("profile" => "full"),
("subsystem" => "elytron"),
("jdbc-realm" => "*")
],
"outcome" => "success",
"result" => {
"description" => "A security realm definition backed by
database using JDBC.",
"capabilities" => [{
"name" => "org.wildfly.security.security-realm",
"dynamic" => true
}],
"access-constraints" => {
"sensitive" => {"elytron-security" =>
{"type" => "elytron"}},
"application" => {"elytron-security" =>
{"type" => "elytron"}}
},
"attributes" => {"principal-query" => {
"type" => LIST,
"description" => "The authentication query used to
authenticate users based on specific key types.",
"expressions-allowed" => false,
"required" => false,
"nillable" => true,
"value-type" => {
{code}
The add operation with no principal-query
{code}
/profile=full/subsystem=elytron/jdbc-realm=jdbc2:add
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" =>
"WFLYCTL0155: 'principal-query' may not be null"},
"rolled-back" => true
}
{code}