Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-412

Default error page prevents an exception being mapped to the 500 error page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.4.Final, 1.2.0.CR1
    • 1.1.3.Final
    • Servlet
    • None

      When there's a default error page configured, getErrorLocation(Throwable) will never return null so the logic added in UNDERTOW-249 never takes effect.

      The logic that Undertow uses is:

      1. See if the exception's been mapped
      2. See if there's a default error page
      3. See if 500's been mapped.

      In contrast, Tomcat's logic is:

      1. See if the exception's been mapped
      2. See if 500's been mapped
      3. See if there's a default error page

      I've seen UNDERTOW-192 and have Undertow configured with ServletStackTraces.NONE.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              ankinson Andy Wilkinson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: