Importing malformed JSON file does not return structured error response

XMLWordPrintable

    • Not defined

      Reproduce:

      • Import a file with the following content:
        this is not valid json
        

      Expected:

      • Backend response is a JSON object with a valid errorCode that can be used to display an error notification

      Observed:

      • Backend response is
        Unrecognized token 'this': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
         at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 6]
        

            Assignee:
            Unassigned
            Reporter:
            Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: