Secured PDFs aren’t served through GET requests in AEM Publisher
Adobe Experience Manager (AEM) Publisher may not serve secured PDFs through HTTP GET requests when the servlet or handler doesn’t correctly process authentication headers or required request parameters. To resolve the issue, review and update the request handling and authentication configuration, deploy the changes, and verify access to the secured PDF.
Description description
Environment
Adobe Experience Manager (AEM) Publisher environment
Issue/Symptoms
- Secured PDF files aren’t served correctly when accessed through HTTP GET requests.
- Secured PDFs can’t be downloaded or viewed as intended.
Root cause
The servlet or handler responsible for processing secured PDF requests doesn’t correctly handle authentication headers or request parameters required for secured resources.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the servlet or handler implementation responsible for processing
GETrequests to secured PDF resources in the AEM Publisher environment. -
Ensure that the servlet or filter configuration allows
GETrequests for secured PDF resources and correctly handles authentication headers, such as a custom authorization header. -
Update the request-parsing logic in the servlet or handler to correctly process the authentication headers and request parameters required for secured PDFs.
-
After making the necessary changes, deploy the updated servlet or handler to the AEM Publisher environment.
-
Test the resolution by issuing a
GETrequest to a secured PDF endpoint. For example, use acurlcommand similar to:code language-none curl --request GET \ --url 'https:///path/to/secured.pdf' \ --header 'Authorization: Basic ' -
Verify that the secured PDF is served as expected and is accessible to authorized individuals.