[GLASSFISH-19402] Syslog logging utf-8 bug and message formatting Created: 04/Dec/12  Updated: 03/Jan/13  Resolved: 03/Jan/13

Status: Resolved
Project: glassfish
Component/s: logging
Affects Version/s: 3.1.2.2
Fix Version/s: 4.0_b71

Type: Bug Priority: Major
Reporter: kabhal Assignee: sandeep.shrivastava
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux



 Description   

1- If the java logged message contains UTF-8 multi-bytes characters, the syslog message is truncated.

Syslog.java use the following code :
DatagramPacket dp = new DatagramPacket(what.getBytes(), what.length(), addr, PACKET_SIZE);

what.length() should take care of UTF-8 strings containing multi-byte characters.

2- Syslog enabled logging (SyslogHandler.java) does not manage MessageFormat messages
ConsoleHandler use UniformLogFormatter which use MessageFormat to handle formatted messages with parameters.
SyslogHandler.java does not.



 Comments   
Comment by sandeep.shrivastava [ 03/Jan/13 ]

This should be fixed with revision 57921.

Generated at Fri Aug 26 04:12:45 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.