Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12421

Race between serving request and destroying JspServletWrapper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Scripting JSP 2.6.2
    • Scripting JSP 2.6.4
    • Scripting
    • None

    Description

      When a JspServletWrapper is destroyed, it is possible that a request is still being served concurrently. This can lead to a NullPointerException if the internal field theServlet is already set to null by the time it's service() method is called.

      To fix this, theServlet should be copied to a local field at the beginning of the JspServletWrapper#service() method.

      Attachments

        Issue Links

          Activity

            People

              jsedding Julian Sedding
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: