Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29572

Fix error body parsing with conflict (HTTP 409 response)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF32, 11.3, 2021.0
    • Component/s: Rest API
    • Release Notes Summary:
      The response is returned as a JSON payload when an error occurs with the Document endpoint.
    • Backlog priority:
      800
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #16
    • Story Points:
      3

      Description

      When a HTTP 409 is returned by the REST API after a concurrent update error, Nuxeo Client is unable to parse the error body, because it's not JSON code

      Is the problem with Nuxeo Java Client or with REST API which does not encode the entity as JSON in https://github.com/nuxeo/nuxeo/blob/master/modules/platform/rest-api/nuxeo-rest-api-server/src/main/java/org/nuxeo/ecm/restapi/server/jaxrs/JSONDocumentObject.java#L85 ?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m