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
        2. ProblemResponseEAP72.json
          0.3 kB
        3. ProblemResponseUpstreamCorrect.json
          0.3 kB
        4. URLEndpoint.txt
          0.1 kB
        5. JacksonIssues.zip
          10 kB
        6. Problem.json_screenshot.png
          Problem.json_screenshot.png
          39 kB
        7. JacksonIssues-parent-0.1.1.war.zip
          5.42 MB

              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: