Translated media loses file if you set mapping from the file to the name

Created on 2 December 2021, over 2 years ago
Updated 8 January 2024, 6 months ago

Problem/Motivation

In some circumstances you can lose translated media files.
It seems to be tied to the mapping set up in the media type.

Steps to reproduce

I created a new install on simplytest.me to reproduce this.

  1. Enable Media
  2. Enable Content translation
  3. Enable Language
  4. Go to admin/config/regional/language
  5. Add spanish
  6. Go to admin/structure/media/add
  7. Create name document library
  8. Set source to file
  9. Save the new media type
  10. edit the new media type and
  11. Set field mapping name to file ( This seems to be where the issue lies)
  12. Save again
  13. Go to admin/config/regional/content-language
  14. Check media
  15. Check document library
  16. Leave only name and file checked
  17. Save
  18. Go to /media/add/document_library
  19. Add a media item
  20. name something like test en
  21. Add file
  22. save
  23. Click add translation for the media entity you just created
  24. Remove the file
  25. Add new file and upload
  26. Hit save
  27. Edit the translation again, the file is missing

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

9.5

Component
MediaΒ  β†’

Last updated about 17 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

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