You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/15 22:32:00 UTC

[jira] [Commented] (LOG4J2-2120) Json escaping does not properly escape newlines

    [ https://issues.apache.org/jira/browse/LOG4J2-2120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16254347#comment-16254347 ] 

ASF GitHub Bot commented on LOG4J2-2120:
----------------------------------------

GitHub user cakofony opened a pull request:

    https://github.com/apache/logging-log4j2/pull/133

    LOG4J2-2120: Json escaping handles newline correctly

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cakofony/logging-log4j2 LOG4J2-2120

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/133.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #133
    
----
commit 9080b71a5db9b45894dadbbd4215a91a80f828c8
Author: Carter Kozak <c4...@gmail.com>
Date:   2017-11-15T22:30:26Z

    LOG4J2-2120: Json escaping handles newline correctly

----


> Json escaping does not properly escape newlines
> -----------------------------------------------
>
>                 Key: LOG4J2-2120
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2120
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Layouts
>    Affects Versions: 2.9.1
>            Reporter: Carter Douglas Kozak
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)