Duplicate media entities are created when selecting the same DAM asset via Media Entity Browser

Created on 7 August 2025, about 18 hours ago

Steps to reproduce:

  1. Configure an Entity Browser using the acquia_dam_browser plugin.
  1. Create a Media Type integrated with Acquia DAM.
  1. Open the media field using the entity browser and select an asset.
  1. Save the content.
  1. Repeat the process and select the same asset again.

Expected behavior:

  • The existing media entity referencing the DAM asset should be reused.

Actual behavior:

  • A new media entity is created, resulting in duplicates for the same DAM asset.

Impact:

  • Leads to cluttered media library.
  • Affects content consistency and increases storage unnecessarily.

Proposed solution:

Enhance the browser plugin or media creation logic to check if a media entity for the selected DAM asset already exists.

If it does, reuse that entity instead of creating a new one.

Environment:

Drupal 10.x

entity_browser_acquia_dam 1.0.x-dev

Media Entity Browser integration with Acquia DAM

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India ankusht1515 Mumbai

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024