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

Return a HTTP 400 (bad request) when creating a document with a non-existing type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF44, 11.x, 2021.2
    • Component/s: Rest API

      Description

      Currently, the code throws a NullPointerException and returns a HTTP code 500 when creating a document with a non-existing type.

      The document type needs to be checked before trying to create the document, and return a HTTP 400 (bad request) if the type does not exist.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: