Name changed in Bynder causes broken thumbnail

Created on 25 October 2024, 21 days ago

Problem/Motivation

When the name of an image is changed in Bynder and the metadata is updated in Drupal, the thumbnail isn't updated and image styles will be broken.

Steps to reproduce

  • Have a content type "Page" with a field "Image" referenced to media of bundle Bynder.
  • Have an image style configured that is used on the full view mode of the "Page" content type for the "Image" field
  • Create a new page and select a Bynder image for the "Image" field
  • Check that the image is shown according to the selected image style.
  • Update the name of the image in Bynder
  • Run the Bynder cronjob and make sure the metadata of the previous selected image is updated
  • Refresh the created page and see that the image is broken

Proposed resolution

During cron when updating the metadata, also update the name, description and thumbnail file linked to the media.

Remaining tasks

Implement code changes
Validate
Release

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

4.2

Component

Code

Created by

🇧🇪Belgium cgoffin

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