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

Getting a doc that does not exist using REST api, does not return the cause error message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.10
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Rest API

      Description

      This has been found while testing bacward compatibility between nuxeo 6 and nuxeo 7:
      REST api example: /nuxeo/api/v1/id/123/ or /nuxeo/api/v1/path/123
      Results in nuxeo 7 :

      {
        "entity-type": "exception",
        "code": "org.nuxeo.ecm.core.api.DocumentNotFoundException",
        "status": 404,
        "message": "123"
      }
      

      Expected result as in nuxeo 6:

      {
          "entity-type": "exception",
          "code": "org.nuxeo.ecm.core.model.NoSuchDocumentException",
          "status": 404,
          "message": "No such document: 123"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mhilaire Maxime Hilaire
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: