Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2084 YARN to support REST APIs in AMs
  3. YARN-2085

GenericExceptionHandler can't report into TEXT/PLAIN responses

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • None
    • webapp
    • None

    Description

      As seen in SLIDER-51, exceptions (like NotFound) can't be mapped into text/plain responses.

      it may be that the Response.status(s).entity(exception).build() logic just doesn't work for plaintext, in which case the handler should detect an unsupported mime type and just return the error code with an empty body. That might be the best approach for other binaries too.

      or: simply catch the marshalling exception and downgrade to an empty-body status code. This would be a more graceful fallback, as it would catch all marshalling issues and return the original error code to the user

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: