AEM Assets: DM_DELIVERY_HOST variable not applied to Dynamic Media URLs in custom implementations

Adobe Experience Manager (AEM) Assets doesn’t automatically apply the DM_DELIVERY_HOST environment variable to out-of-the-box Dynamic Media URL generation, so custom implementations may continue to use the default delivery hostname. To resolve the issue, configure the custom implementation to explicitly reference DM_DELIVERY_HOST, deploy the updated configuration, and verify the generated URLs.

Description description

Environment

Adobe Experience Manager (AEM) Assets (all versions, including AEM as a Cloud Service and on-premise)

Issue/Symptoms

  • Dynamic Media delivery URLs continue to use the default hostname after setting DM_DELIVERY_HOST.
  • API calls or asset retrievals return URLs with the default delivery host instead of the expected environment-specific hostname.

Root cause

The DM_DELIVERY_HOST environment variable isn’t automatically referenced by out-of-the-box Dynamic Media URL generation. A custom implementation must explicitly reference the environment variable in its configuration to override the default hostname.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the application or integration to determine whether it uses a custom service or logic to generate or consume Dynamic Media delivery URLs.
  2. If a custom implementation is present, such as a custom OSGi configuration for asset delivery, ensure that the configuration references the DM_DELIVERY_HOST environment variable.
  3. In the OSGi configuration, for example, for AssetDeliveryServiceImpl, set the delivery host property to use the environment variable: delivery.host: $[ env:DM_DELIVERY_HOST]
  4. Deploy the updated configuration to the AEM environment.
  5. After deployment, perform API calls or asset retrievals and confirm that the generated Dynamic Media URLs use the correct environment-specific hostname.
  6. No additional cache clearing or AEM deployment steps are required if updating the configuration resolves the issue.
recommendation-more-help
experience-cloud-kcs-help-kbarticles