Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Security 1.0.10
-
None
Description
Multiple content-disposition headers can be added under some conditions.
This seems to happen because setContentType is actually called more than once for the same response when multiple sling scripts are involved in rendering, e.g. via org.apache.sling.scripting.core.impl.DefaultSlingScript.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) line: 448