Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2120

Json escaping does not properly escape newlines and other control characters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.10.0
    • Component/s: Layouts
    • Labels:
      None

      Description

      Newline procudes the string "\u000A" where we expect literal "\n" (two individual characters).

      The produced json is not parsable by some systems, pythoon -mjsontool for example.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mikaelstaldal Mikael Ståldal
                Reporter:
                ckozak Carter Douglas Kozak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: