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

DefaultGetServlet shoud not use sendError when response is already committed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.4
    • Servlets Get 2.0.6
    • Servlets
    • None

    Description

      If no renderer servlet is found in the DefaultGetServlet, it calls sendError(). If this is an included request, sendError usually fails as the response is already committed. In this case it's hard to detect the underlying problem.
      Therefore I suggest to check if this is an included request and in this case throw a ServletException
      I'm not in favour of checking for response isCommitted as this is more unpredictable

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: