[jboss-jira] [JBoss JIRA] (WFLY-7587) Complicated failure-description for referral-mode in Elytron dir-context

Ondrej Lukas (JIRA) issues at jboss.org
Tue Nov 15 02:41:02 EST 2016


Ondrej Lukas created WFLY-7587:
----------------------------------

             Summary: 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: Darran Lofthouse


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}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list