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

Write a generic message for exception mapped to HTTP error code >= 500

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.x, 2021.2
    • Component/s: Rest API
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #26
    • Story Points:
      3

      Description

      When writing an exception in the REST API, if the exception is mapped to a HTTP error code >= 500, write a generic message "Internal Server Error" instead of the exception message as it may leak low level information.

      The exception message still needs to be written if the Nuxeo dev mode is set.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: