Invalid JSON in the request returns server 500 error

XMLWordPrintable

    • Severity 3 - Minor

      If you send invalid JSON to a REST api resource, you get a server error 500:

      {
          "message": "org.codehaus.jackson.JsonParseException: Unexpected character ('\"' (code 34)): was expecting comma to separate OBJECT entries\n at [Source: org.apache.catalina.connector.CoyoteInputStream@ff2e32; line: 2, column: 15]",
          "statusCode": 500
      }
      

      This should return a Bad Request (400) response.

            Assignee:
            Unassigned
            Reporter:
            m@ (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: