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

Return 400-class error if there is a Lexical error when calling Repository.Query via REST

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10, 11.x
    • Fix Version/s: 10.10-HF35, 11.4, 2021.0
    • Component/s: Rest API
    • Release Notes Summary:
      A lexical error when calling the operation Repository.Query returns a HTTP 400 (Bad Request) error.
    • Tags:
    • Backlog priority:
      800
    • Sprint:
      CB Sprint 2, CB Sprint 3
    • Story Points:
      1

      Description

      "We should never return a 500 for anything caused by user input or REST API input"

      If Repository.Query is called via REST and the NXQL query parameter is invalid (i.e. it can't be parsed or executed because of a typographical error or a missing keyword) the return code should not be 500 - it would be better if the RC was something in the 400 range.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: