Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Because of str_replace()
usage in content_migrate_filefield_data_record_alter()
all occurrences of file directory path will be removed from the file path and not the only one at the beginning.
For example, when file directory path is just "files
" and file path is "files/profiles/my-files/img1.png
" the URI becomes "public://pro/my-/img1.png
", which is really wrong and we expect "public://profiles/my-files/img1.png
".
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#4 | cck-1732944-04.patch | 797 bytes | rfay |
#1 | cck-1732944-1.patch | 1.27 KB | Dmitriy.trt |
Comments
Comment #1
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedComment #2
DamienMcKennaComment #3
DamienMcKennaComment #4
rfayThe patch in #1 looks right to me, but it doesn't currently apply, as it has the wrong filename (filefield.inc instead of file.inc). Here's a simple reroll, no changes.