Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2217

HttpServletResponseBufferingWrapper throws NPE when response body is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2, 2.3.0
    • 2.3.0
    • None
    • Normal
    • Patch available
    • Servlet Service Framework - 1.1.0-dev
    • Servlet Service Framework - 1.1.0-dev

    Description

      When the response body is empty, e.g. when a FileNotFoundException is thrown by a generator, or servlet service call returns an empty response, a NPE is thrown by HttpServletResponseBufferingWrapper.

      Patch adds a null check on HttpServletResponseBufferingWrapper's outputStream in the flushBufferedResponse method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rob@robinwyles.com Robin Wyles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: