]
Darran Lofthouse updated WFLY-7587:
-----------------------------------
Fix Version/s: 11.0.0.Alpha1
Complicated failure-description for referral-mode in Elytron
dir-context
------------------------------------------------------------------------
Key: WFLY-7587
URL:
https://issues.jboss.org/browse/WFLY-7587
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Ondrej Lukas
Assignee: Jan Kalina
Labels: user_experience
Fix For: 11.0.0.Alpha1
In case when attribute {{referral-mode}} is added to {{dir-context}} with wrong value
then failure-description includes IllegalArgumentException instead of some non-Java admin
friendly description:
{code}
/subsystem=elytron/dir-context=dirContext:add(url=localhost,referral-mode=abc)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0158: Operation handler failed:
java.lang.IllegalArgumentException: No enum constant
org.wildfly.security.auth.realm.ldap.DirContextFactory.ReferralMode.abc",
"rolled-back" => true
}
{code}
Suggestion for improvement:
Use the same type of failure-description as e.g. {{logical-role-mapper}}, see:
{code}
/subsystem=elytron/logical-role-mapper=logicalRoleMapper:add(logical-operation=abc)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0248: Invalid value abc for
logical-operation; legal values are [OR, AND, XOR, MINUS]",
"rolled-back" => true
}
{code}