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

Elytron - inconsistency between DMR and XSD representation of regex-name-validating-rewriter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Optional
    • 11.0.0.Alpha1
    • None
    • Security
    • None

    Description

      There is an inconsistency between DMR and XSD representation of regex-name-validating-rewriter.
      According to XSD[1] is match attribute optional. On the other hand DMR[2] says that match attribute is mandatory ("nillable" => false).
      Match attribute is currently required if user adds a new regex-name-validating-rewriter. Is it an intentional behaviour or should match be optional (=according to XSD definition)?

      [1] https://github.com/wildfly-security/elytron-subsystem/blob/master/src/main/resources/schema/wildfly-elytron_1_0.xsd#L1321

      [2] /subsystem=elytron:read-resource-description(recursive=true)

      "regex-name-validating-rewriter" => {
                      "description" => "A regular expression based Name Rewriter which uses the regular expression to validate the name.",
                      "model-description" => {"*" => {
                          "description" => "A regular expression based Name Rewriter which uses the regular expression to validate the name.",
                          "capabilities" => [{
                              "name" => "org.wildfly.security.name-rewriter",
                              "dynamic" => true
                          }],
                          "attributes" => {
                              "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"
                              },
                              "pattern" => {
                                  "type" => STRING,
                                  "description" => "The regular expression to use to locate the portion of the name to be replaced.",
                                  "expressions-allowed" => true,
                                  "nillable" => false,
                                  "min-length" => 1L,
                                  "max-length" => 2147483647L,
                                  "access-type" => "read-write",
                                  "storage" => "configuration",
                                  "restart-required" => "resource-services"
                              }
                          },
                          "operations" => undefined,
                          "notifications" => undefined,
                          "children" => {}
                      }}
                  }
      

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              jtymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: