Header Overflow error for assets with long paths in AEM as a Cloud Service
Adobe Experience Manager as a Cloud Service (AEMaaCS) may return a Header Overflow error (HTTP 503) for DAM assets with long or complex paths in production when the CDN configuration uses { reqProperty: path }. To resolve the issue, replace { reqProperty: path } with { reqProperty: pathRaw } in the relevant cdn.yaml configuration and redeploy it.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS), (all versions)
Issue/Symptoms
- Accessing DAM assets with long or complex paths in production returns a Header Overflow error (HTTP 503).
- The same asset URLs work in non-production environments.
- The issue is reproducible with affected asset URLs.
- Shorter asset paths aren’t affected.
Root cause
The production CDN configuration uses { reqProperty: path }, which can result in excessively long HTTP headers for assets with long paths. Using { reqProperty: pathRaw }instead prevents the issue by using the raw path value.
Resolution resolution
Follow the steps below to resolve the issue:
- Locate the
cdn.yamlconfiguration file used in the production environment. - Search for configuration entries that use
{ reqProperty: path }. - Replace each instance of
{ reqProperty: path }with{ reqProperty: pathRaw }in the relevant sections ofcdn.yaml. - Save and deploy the updated
cdn.yamlconfiguration to the production environment according to the standard deployment process. - After deployment, test the previously failing asset URLs with long paths and confirm that the
Header Overflowerror no longer occurs.
recommendation-more-help
experience-cloud-kcs-help-kbarticles