Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17761

[GSS](7.2.z) RESTEASY-2387 - FasterXML Jackson reports incorrect line number for JSON parsing errors.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.2.z.GA
    • REST
    • +
    • 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.

        1. Problem.json
          0.1 kB
          David Guthrie
        2. Problem.json_screenshot.png
          39 kB
          Ilia Vassilev
        3. ProblemResponseEAP72.json
          0.3 kB
          David Guthrie
        4. ProblemResponseUpstreamCorrect.json
          0.3 kB
          David Guthrie
        5. URLEndpoint.txt
          0.1 kB
          David Guthrie

              istudens@redhat.com Ivo Studensky
              rhn-support-dguthrie David Guthrie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: