Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39774

RequestFilter - Improve Error Information on Servlet Exception

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.x, 2.7.x, 2.8.x
    • Component/s: Kernel
    • Labels:
      None
    • Environment:
      N/A

      Description

      The notorious ServletException does not give you any helpful information as to what is really the problem.

      The catch statement in RequestFilter.doFilter() only logs the generic Throwable, so if this is a ServletException, you get no real helpful information as to what the problem might be.

      I have written a small snippet of code to check if the Throwable is a ServletException and if so, to log the root cause of the Exception in an effort to assist the developer in tracking down the actual problem (patch attached).

      Can this be added to the 2.4.x branch and current 2.5 and 2.6 versions (if not already)?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                k1team KERNEL TEAM (Inactive)
                Reporter:
                cdunstall@csu.edu.au Chris Dunstall (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code