Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3559

PrepareInterceptor is eating exceptions that occur in prepare{methodName} methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 2.2.1.1
    • 2.2.3
    • Core Interceptors
    • None
    • All

    • Patch, Important

    Description

      The PrepareInterceptor is eating any exceptions that occur when calling prepare

      {MethodName}

      methods.
      It is catching the exceptions and simply logging a warning then continuing.
      It should be re-throwing these exception so that normal exception handling login (i.e. the Exception Interceptor) is performed.
      Exceptions that occur in the prepare() method are (correctly) not caught but those in the prepare{MethodName) methods are being caught and ignored.

      I have a patch that corrects this bug.

      Attachments

        1. WW-3559-test.patch
          2 kB
          Maurizio Cucchiara
        2. PrepareInterceptor_patch.txt
          3 kB
          Greg Lindholm

        Activity

          People

            maurizio.cucchiara Maurizio Cucchiara
            glindholm Greg Lindholm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: