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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.2.0.CD12
    • 7.1.0.ER2
    • Security
    • 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 }

    Description

      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].

      This issue is reported in EAP 7.1.0.ER2 since periodic-rotating-file-audit-log is provided in EAP 7.1.0.ER2.

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: