Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4028

Creating new Periodic File Rotating Handler allows to enter a wrong suffix in domain mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.1.Final
    • 7.1.0.Final
    • Logging
    • None

    Description

      While running server in domain mode, It is possible to create new Periodic File Rotating Handler with suffix "s" , and the same approach in standalone mode correctly throws (via Admin Console)
      Caused by: java.lang.IllegalArgumentException: Rotating by second or millisecond is not supported
      at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setSuffix(PeriodicRotatingFileHandler.java:141) [jboss-logmanager-1.2.2.GA.jar:1.2.2.GA]

      or in CLI
      [standalone@localhost:9999 periodic-rotating-file-handler=testx] :write-attribute(name=suffix, value="ss")
      {
      "outcome" => "failed",
      "failure-description" => "JBAS014749: Operation handler failed: Rotating by second or millisecond is not supported",
      "rolled-back" => true
      }

      In domain mode:
      [domain@localhost:9999 periodic-rotating-file-handler=test4] :write-attribute(name=suffix, value="ss")
      {
      "outcome" => "success",
      "result" => undefined,
      "server-groups" => undefined
      }

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            pslegr_jira Pavel Slegr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: