]
Darran Lofthouse reassigned ELY-1266:
-------------------------------------
Assignee: (was: Darran Lofthouse)
Simple String in Elytron rotating-file-audit-log.suffix attribute
causes wrong audit file name
----------------------------------------------------------------------------------------------
Key: ELY-1266
URL:
https://issues.jboss.org/browse/ELY-1266
Project: WildFly Elytron
Issue Type: Bug
Components: Audit
Affects Versions: 1.1.0.Beta52
Reporter: Ondrej Lukas
{{suffix}} attribute of Elytron {{rotating-file-audit-log}} uses
{{java.text.SimpleDateFormat}} format [1]. It means that {{'someText'}} can be
used as value of {{suffix}} attribute. However in case when only this string (without any
pattern letters) is used in {{suffix}}, then resulting audit file name includes suffix
"null" instead of defined suffix "someText". In case when suffix
includes also pattern letters (e.g. {{d'someText'}}) then it works correctly.
[1]
https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html