Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3064

Suffix in Elytron periodic-rotating-file-audit-log cannot include 's' or 'S' in text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 3.0.0.Beta28
    • Security
    • None
    • Hide

      Run following CLI command:

      /subsystem=elytron/periodic-rotating-file-audit-log=log:add(path=/tmp/audit.log,suffix="m'suffix'")
      {
          "outcome" => "failed",
          "failure-description" => "WFLYELY01019: The suffix (m'suffix') can not contain seconds or milliseconds.",
          "rolled-back" => true
      }
      
      Show
      Run following CLI command: /subsystem=elytron/periodic-rotating-file-audit-log=log:add(path=/tmp/audit.log,suffix= "m 'suffix' " ) { "outcome" => "failed" , "failure-description" => "WFLYELY01019: The suffix (m 'suffix' ) can not contain seconds or milliseconds." , "rolled-back" => true }

      Suffix in Elytron periodic-rotating-file-audit-log cannot include second-of-minute or fraction-of-second symbol. However this symbol is checked even in text (some string in ''). This means that symbols 's' or 'S' cannot be used in text. It is probably caused by incorrectly implemented condition in org.wildfly.extension.elytron.validators.SuffixValidator.validateParameter method [1].

      [1] https://github.com/wildfly/wildfly-core/blob/7032d8b6cf5a87ab32cc27b2712b4d89c1683c88/elytron/src/main/java/org/wildfly/extension/elytron/validators/SuffixValidator.java#L49

              rhn-support-ivassile Ilia Vassilev
              olukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: