[
https://issues.jboss.org/browse/WFCORE-2827?page=com.atlassian.jira.plugi...
]
Jan Kalina updated WFCORE-2827:
-------------------------------
Steps to Reproduce:
Try to add following audit log:
{code}
/subsystem=elytron/rotating-file-audit-log=myAppRotate/:add(path=audit.log,format=SIMPLE,max-backup-index=1,rotate-on-boot=false,rotate-size=2000,synchronized=true,relative-to=jboss.server.log.dir)
{code}
Creating will fail.
was:
{code}
/subsystem=elytron/rotating-file-audit-log=myAppRotate/:add(path=audit.log,format=SIMPLE,max-backup-index=1,rotate-on-boot=false,rotate-size=2000,synchronized=true,relative-to=jboss.server.log.dir)
{code}
undefined suffix in rotating-file-audit-log not handled
-------------------------------------------------------
Key: WFCORE-2827
URL:
https://issues.jboss.org/browse/WFCORE-2827
Project: WildFly Core
Issue Type: Bug
Components: Security
Affects Versions: 3.0.0.Beta21
Reporter: Jan Kalina
Assignee: Jan Kalina
Priority: Critical
Attribute *suffix* of *rotating-file-audit-log* is optional, but if not filled, following
exception occure:
{code}
MSC000001: Failed to start service
org.wildfly.security.security-event-listener.myAppRotate:
org.jboss.msc.service.StartException in service
org.wildfly.security.security-event-listener.myAppRotate: Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'n'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:826)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:634)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:605)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:580)
at
org.wildfly.security.audit.RotatingFileAuditEndpoint$Builder.setSuffix(RotatingFileAuditEndpoint.java:289)
at
org.wildfly.extension.elytron.AuditResourceDefinitions$2.lambda$getValueSupplier$2(AuditResourceDefinitions.java:247)
at org.wildfly.extension.elytron.TrivialService.start(TrivialService.java:53)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
... 3 more
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)