Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2387

FasterXML Jackson reports incorrect line number for JSON parsing errors.

XMLWordPrintable

    • Hide

      A reproducer is provided.

      Build and deploy the reproducer, then run

      $ curl -d "`cat Problem.json`" -H "Content-Type: application/json" -X POST `cat URLEndpoint.txt`

      It will output a json error message with the line number of the error incorrect.

      The pom.xml has comments on switching to an upstream version of jackson that works correctly.

      Show
      A reproducer is provided. Build and deploy the reproducer, then run $ curl -d "`cat Problem.json`" -H "Content-Type: application/json" -X POST `cat URLEndpoint.txt` It will output a json error message with the line number of the error incorrect. The pom.xml has comments on switching to an upstream version of jackson that works correctly.

      When passed an invalid json document, the jackson libraries included in the release report an incorrect line number.

              istudens@redhat.com Ivo Studensky
              rhn-support-ivassile Ilia Vassilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: