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

Jan Kalina (JIRA) issues at jboss.org
Mon Nov 28 12:00:00 EST 2016


     [ https://issues.jboss.org/browse/WFLY-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Kalina reassigned WFLY-7587:
--------------------------------

    Assignee: Jan Kalina  (was: Darran Lofthouse)


> 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
>    Affects Versions: 11.0.0.Alpha1
>            Reporter: Ondrej Lukas
>            Assignee: Jan Kalina
>              Labels: user_experience
>
> 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