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.
I just ran into an issue where I was unable to run a migration from a CSV file deployed via Git to an Acquia cloud server.
This was due to file permission issues.
I discovered that this is due to the migrate_source_csv module requiring write access mode for the csv file.
https://git.drupalcode.org/project/migrate_source_csv/blob/8.x-3.x/src/P...
return Reader::createFromStream(fopen($this->configuration['path'], 'r+'));
My question here is, why is write permission required? When would we ever want to modify the file? Is there a reason we cannot use 'r'
(as this would work fine on Acquia).
Thanks
Comment | File | Size | Author |
---|---|---|---|
#3 | 3066702-remove-write-permission-3.patch | 520 bytes | Leon Kessler |
Comments
Comment #2
heddnThat's just a copy/paste mistake when pulling in that code from the
league/csv
project. Happy to take patches that will fix the issue.Comment #3
Leon Kessler CreditAttribution: Leon Kessler commentedHere's a tiny patch to remove the write permission.
Comment #5
heddnThanks!!!