Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5986

Elytron, regex-name-validating-rewriter - 'match' attribute required and unclear description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.1.0.DR9
    • 7.1.0.DR4
    • Security
    • None

      Attribute 'match' is required when adding 'regex-name-validating-rewriter' although when reading the resource description via CLI, I can see that it has defined default value (true) and in XSD file it is not stated as a 'required'. Try:

      /subsystem=elytron/regex-name-validating-rewriter=nameRewriter:add(pattern=".*")
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0172: match is required",
          "rolled-back" => true
      }
      

      When you try to add also with 'match' attribute then rewriter is added successfully.

      Also - the 'match' attribute description in CLI is not quite clear:

      /subsystem=elytron/regex-name-validating-rewriter=nameRewriter:read-resource-description
      ...
                  "match" => {
                      "type" => BOOLEAN,
                      "description" => "Should names that match the pattern be rejected or names that don't",
                      "expressions-allowed" => true,
                      "nillable" => false,
                      "default" => true,
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "resource-services"
                  },
      ...
      

      After reading the description I still don't know what happens when pattern matches the name and value of 'match' attribute is set to 'true' - will it be rejected or not?

      Expected behaviour:

      1. 'match' attribute to be arbitrary (or change XSD so it is in sync with model)
      2. more clear description of 'match' attribute

              rhn-support-ivassile Ilia Vassilev
              jstourac@redhat.com Jan Stourac
              Jan Stourac Jan Stourac
              Jan Stourac Jan Stourac
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: