Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45556

Inconsistent status code between web page and REST API when exception is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.0
    • None
    • Web UI

    Description

      Spark history server provides AppHistoryServerPlugin to add extra REST API and web pages. However there's an issue when exceptions are thrown, causing incnosistent status code between web page and REST API.

      For REST API, if the thrown exception is an instance of WebApplicationException, then the status code will be set as the one defined within the exception.

      However for web page, all exceptions are wrapped within a 500 response.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wekoms wy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: