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

Json escaping does not properly escape newlines and other control characters

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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 Kozak

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment