In AEM 6.2, we have the following configuration Apache Sling Content Disposition Filter (org.apache.sling.security.impl.ContentDispositionFilter). Is there any side effects of unchecking the option "Enable Content Disposition for all paths".
I have unchecked it to prevent the dam assets like PDF from being downloaded automatically. Is it possible to restrict this only for PDF files irrespective of paths.
Response from team:
Hi here, i'm using this configuration
and it seems to work, i mean, I've deactivated the filter for all paths, but I have added a rule to validate everything in content except pdfs
what do you think? should i add more paths on Included Resource Paths, as for example, /etc, /libs, /apps etc
Hey team, there's a typo in this doc Adobe Experience Manager Help | Content Disposition Filter - it says PFD instead of PDF - please have this updated.
So, from 6.4 all assets including PDF gets downloaded, unless otherwise the filter is disabled or exceptions are added.
I disabled Content Disposition filter for all paths. It worked fine for all the image other than .svg images. They are still getting downloaded. Any thoughts on it?
For requests via apache, this is happening correctly for PDF files. The problem happens only while being invoked directly from AEM instance.