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:

  1. Locate the cdn.yaml configuration file used in the production environment.
  2. Search for configuration entries that use { reqProperty: path }.
  3. Replace each instance of { reqProperty: path } with { reqProperty: pathRaw } in the relevant sections of cdn.yaml.
  4. Save and deploy the updated cdn.yaml configuration to the production environment according to the standard deployment process.
  5. After deployment, test the previously failing asset URLs with long paths and confirm that the Header Overflow error no longer occurs.
recommendation-more-help
experience-cloud-kcs-help-kbarticles