Inconsistent $this->format Property in getExternalUrl() for Acquia DAM Documents

Created on 10 January 2024, 6 months ago

Problem/Motivation

When dealing with a component containing multiple Acquia DAM assets and attempting to execute getExternalUrl(), the format property for the asset object consistently remains set to 'web,' even when the asset is a .pdf file. Upon further investigation, it becomes apparent that on each invocation of loadAsset() within the same page or component, the value of $this->format persists as 'web' and is not reset anywhere in the codebase. This creates an issue where the format property does not accurately reflect the actual file type, impacting the proper handling of diverse asset types.

Proposed resolution

Reset $this->format to 'original' value

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡²πŸ‡©Moldova vadim.hirbu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024