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

DefaultErrorHandlerServlet should not write if response is already committed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Servlets Resolver 2.9.10
    • Servlets
    • None

    Description

      The DefaultErrorHandlerServlet is not checking whether the response is committed for html responses. It does so for JSON, but still writes the output which results in garbage.
      The servlet shouldn't do anything if the response is already committed, except logging

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: