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

HttpServletResponseBufferingWrapper throws NPE when response body is empty

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.2.1
    • Fix Version/s: 2.2.1
    • Labels:
      None
    • Urgency:
      Normal
    • Other Info:
      Patch available
    • Affects version (Component):
      Servlet Service Framework - 1.1.0-dev
    • Fix version (Component):
      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

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

              Dates

              • Created:
                Updated:
                Resolved: