Problem/Motivation
- When a new version of an image is added in DAM and synced via cron or even manually sync, the media entity doesn’t updates in Drupal successfully.
- When the asset version is updated in Widen DAM, it does get resynced to the Drupal site, and the updated image appears correctly on pages where it is rendered.
- However, image thumbnails continue to show the older version of the asset in three key places:
- On the node edit page where media is selected.
- In the DAM asset popup listing when adding new media.
- In the Media Library.
Issue fork acquia_dam-3552089
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
becw commentedOoh, perhaps this will address my issue -- I'm experiencing some syncing issues with DAM assets using the "Download and sync assets" option. What I'm seeing is that when I update an image file on the DAM and then run the DAM sync via Drupal cron:
sites/default/files/acquia_dam_thumbnails/0b503077-2982-4985-9ac1-22dd67350731/2c8954c7-6c41-4b40-ba0f-39ce9e38c8bb.png) shows the old version (bug)sites/default/files/styles/large/public/dam/image/my-image.png) shows the old version (bug)When I step through the code using xdebug, it appears that
image_path_flush()is called, but not for the local file -- only for a file with a path more like0b503077-2982-4985-9ac1-22dd67350731/2c8954c7-6c41-4b40-ba0f-39ce9e38c8bb.png.Steps to reproduce
Comment #4
rajeshreeputra@becw could you please try applying the changes from this MR, this should fix the issue you mentioned above point 8, 9.
Comment #6
becw commentedThese changes worked for me, following the steps I outlined above. Thank you!
Comment #8
japerryA little delay because it is mixing the image plugin derivative with the File entity helper, but thats a problem for another day.
Merged!