[jboss-jira] [JBoss JIRA] (AS7-4028) Creating new Periodic File Rotating Handler allows to enter a wrong suffix in domain mode
Pavel Slegr (JIRA)
jira-events at lists.jboss.org
Mon Mar 5 07:07:36 EST 2012
Pavel Slegr created AS7-4028:
--------------------------------
Summary: Creating new Periodic File Rotating Handler allows to enter a wrong suffix in domain mode
Key: AS7-4028
URL: https://issues.jboss.org/browse/AS7-4028
Project: Application Server 7
Issue Type: Bug
Components: Logging
Affects Versions: 7.1.0.Final
Reporter: Pavel Slegr
Assignee: James Perkins
Fix For: 7.1.2.Final
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 at 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 at localhost:9999 periodic-rotating-file-handler=test4] :write-attribute(name=suffix, value="ss")
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list