Bug 54818 - SyslogAppender tag does not support non-alphanumeric characters.
Summary: SyslogAppender tag does not support non-alphanumeric characters.
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2.18
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 09:45 UTC by Hem
Modified: 2013-04-09 09:45 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hem 2013-04-09 09:45:59 UTC
The following method does not allow syslog tags to include characters other than alphanumeric characters, for example, underscores are not allowed. The syslog spec allows 

public void setTag(final String tag) {
    .
    .
    .
            if (NOT_ALPHANUM.matcher(newTag).find()) {
                throw new IllegalArgumentException("tag contains non-alphanumeric characters");
            }
    .
    .
    .
}