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

Map ClientException to HTTP 500 in Automation ExceptionHandler to log these exceptions server-side

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0-HF04, 5.9.2
    • Component/s: Automation

      Description

      Since NXP-11403, ClientException are mapped to HTTP 400 in ExceptionHandler, therefore not logged by default server-side by the Jersey container in ContainerResponse#onException:

      if (!mapped && r.getStatus() >= 500) {
      logException(e, r, Level.SEVERE);
      } else if (LOGGER.isLoggable(Level.FINE)) {
      logException(e, r, Level.FINE);
      }
      

      In most of the cases, Nuxeo API will throw a ClientException that should be logged by the server, so let's map ClientException to HTTP 500.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: