This description of Content-Disposition configuration is not clear #449
Labels
Enhancement
A suggestion for an improvement or expansion to the existing docs
Tracked
Issue has been triaged and transferred to AdobeDocs Jira
Issue in ./help/sites-administering/content-disposition-filter.md
There are two OSGi configurations that affect the "Content-Disposition" response header in AEM. This doc only mentions one of them, namely "Apache Sling Content Disposition Filter" (org.apache.sling.security.impl.ContentDispositionFilter). The description of the fields for this config is not clear. Here's a more precise definition (from Jira GRANITE-34680):
The other OSGi configuration that affects Content-Disposition is "Dam Safe Binary Filter" (com.day.cq.dam.core.impl.servlet.DamContentDispositionFilter). This config defines the mimetypes served with the response header "Content-Disposition: attachment". The first one Blacklisted Mime Types really means "Set Content-Disposition response header to 'attachment' for these mime types". It has the default values "text/html", "application/octet-stream", and "image/svg+xml". The second one (Allow unknown mime types), the checkbox, can be interpreted as: If there is no mime type defined on the asset, then (1) if enabled, set Content-Disposition = inline, (2) if disabled, set Content-Disposition = attachment.
If you have a static HTML asset that you have stored in the DAM and desire that .html file to be rendered inline and not downloaded as an attachment, the Enable For All Resource Paths checkbox needs to be disabled (unchecked) in the "Apache Sling Content Disposition Filter" config and the value "text/html" needs to removed from the list of Blacklisted Mime Types in the "Dam Safe Binary Filter" config.
The text was updated successfully, but these errors were encountered: