You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2022/11/27 13:31:00 UTC

[jira] [Resolved] (SLING-11703) DefaultErrorHandlerServlet should not write if response is already committed

     [ https://issues.apache.org/jira/browse/SLING-11703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-11703.
--------------------------------------
    Resolution: Fixed

https://github.com/apache/sling-org-apache-sling-servlets-resolver/commit/4dbd96bf6dc8656b97d07223ac4c720151069387

> DefaultErrorHandlerServlet should not write if response is already committed
> ----------------------------------------------------------------------------
>
>                 Key: SLING-11703
>                 URL: https://issues.apache.org/jira/browse/SLING-11703
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: Servlets Resolver 2.10.0
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)