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.
Problem/Motivation
When migrating users that have an empty value for pictures you get weird files appearing in the files table as shown by the following image:
Proposed resolution
Not sure what is causing this yet.
Remaining tasks
Patch
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff.txt | 597 bytes | benjy |
#6 | 2681505-6.patch | 1.82 KB | benjy |
#2 | 2681505-2-FAIL.patch | 826 bytes | benjy |
#2 | 2681505-2-PASS.patch | 1.24 KB | benjy |
user-picture-FAIL.patch | 815 bytes | benjy | |
Comments
Comment #2
benjy CreditAttribution: benjy at PreviousNext commentedOK, it was the migration plugin stubbing the file which I don't think we need here because d6_user has d6_user_picture_file as a dependency which will mean that will run first if it exists.
Plus, a new fail patch because the first one was failing even with the fix.
Comment #6
benjy CreditAttribution: benjy at PreviousNext commentedOpened #2681539: MigrateUpgrade6Test does not migrate files and set the asserted value to 0 as its the UI test that is not migrating any files.
Comment #7
benjy CreditAttribution: benjy at PreviousNext commentedComment #8
heddnPossibly related to #2681717: Oddly named files (long string of characters) in files dir after migration
Comment #9
quietone CreditAttribution: quietone as a volunteer commentedYes, this fixes the problem. I ran a migration, via the UI, without this patch and the arbitrary files were created. Reinstalled D8, applied patch, and reran the same migration, and the files weren't created.
Wasn't familiar with the migration counts until I finished some work on #2500533: Upgrade path for System 7.x and setting it to 0 makes sense.
Therefore, RTBC.
Comment #10
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!
Doesn't apply to 8.0.x, so not cherry-picked to there.