Media metadata not being updated when file source field is updated

Created on 29 January 2020, over 4 years ago
Updated 26 June 2023, about 1 year ago

Media entity has a prepareSave implementation that is tasked with updating media metadata fields if it detects that the source field has changed. The source may have changed in such a way that the media module does not detect.

For a file-based source, it basically just checks that if file id being referenced has changed. But what if the file entity being referenced is the same, but has been updated (like if someone performed a file replacement using the Media Entity File Replace module)? In this case, media does not detect the change and won't update the metadata fields.

There's also no public API to force the regeneration of the metadata fields, but there will be if ✨ Expose triggering update of media metadata + thumbnail to end users Needs work is committed. But even with that issue committed, it may be that we can better detect if a source field has changed.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024