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

Add voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            stevel@apache.org Steve Loughran

            Dates

              Created:
              Updated:

              Slack

                Issue deployment