glassfish
  1. glassfish
  2. GLASSFISH-19402

Syslog logging utf-8 bug and message formatting

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: 4.0_b71
    • Component/s: logging
    • Labels:
      None
    • 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.

        Activity

        Hide
        sandeep.shrivastava added a comment -

        This should be fixed with revision 57921.

        Show
        sandeep.shrivastava added a comment - This should be fixed with revision 57921.

          People

          • Assignee:
            sandeep.shrivastava
            Reporter:
            kabhal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: