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

FasterXML Jackson reports incorrect line number for JSON parsing errors.

    Details

    • Steps to Reproduce:
      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.

      Description

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  istudens Ivo Studensky
                  Reporter:
                  ivassile Ilia Vassilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: