This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.security-1.1.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git
commit a7351445864110c958e4233e713a39db50dc400f Author: Antonio Sanso <[email protected]> AuthorDate: Wed Nov 16 12:54:06 2016 +0000 SLING-6271 - ContentDispositionFilter can suppress content type upon request forwarding * applied patch from Rob Ryan. Thanks! git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/security@1769970 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/security/impl/ContentDispositionFilter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/apache/sling/security/impl/ContentDispositionFilter.java b/src/main/java/org/apache/sling/security/impl/ContentDispositionFilter.java index abb3bd3..ca4c92f 100644 --- a/src/main/java/org/apache/sling/security/impl/ContentDispositionFilter.java +++ b/src/main/java/org/apache/sling/security/impl/ContentDispositionFilter.java @@ -219,6 +219,12 @@ public class ContentDispositionFilter implements Filter { this.resource = request.getResource(); } + @Override + public void reset() { + request.removeAttribute(ATTRIBUTE_NAME); + super.reset(); + } + /** * @see javax.servlet.ServletResponseWrapper#setContentType(java.lang.String) */ -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
