RedirectServlet must not redirect if the response is committed or in included
requests
--------------------------------------------------------------------------------------
Key: SLING-1087
URL: https://issues.apache.org/jira/browse/SLING-1087
Project: Sling
Issue Type: Bug
Components: Servlets Get
Affects Versions: Servlets Get 2.0.4
Reporter: Felix Meschberger
If a redirect resource is rendered with the RedirectServlet. This servlet
should *not* actually do the redirect if (a) the request has already been
committed (to prevent an IllegalStateException) and/or if (b) the request is an
included one (we don't expect such things in included requests)
The fix is probably to add such a check at the beginning of the
RedirectServlet.doGet method:
if (response.isCommitte()) {
log warn
return;
} else if (response is included) {
log warn
return;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.