Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7587

Complicated failure-description for referral-mode in Elytron dir-context

    Details

      Description

      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:

      /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
      }
      

      Suggestion for improvement:
      Use the same type of failure-description as e.g. logical-role-mapper, see:

      /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
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  honza889 Jan Kalina
                  Reporter:
                  olukas Ondrej Lukas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: