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.
If we save 'file_private_path' variable on 'admin/config/media/file-system' page as empty string, private file system becomes unavailable in Drupal: http://drupalcode.org/project/drupal.git/blob/b9127101ffeca819e74a03fa9f...
The same should be done in Drush.
Initial patch for branch 7.x-5.x attached.
Why I decided to fix it:
drush perms command (#990812: Add a "permissions" subcommand to fix/set all file permissions) takes private path '' (if it is an empty string), convert to absolute path and sets permissions for whole drupal directory as for private folder. Not so cool.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
drush-status-private-files.patch | 640 bytes | kalabro |
Comments
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedI agree that this should be committed; the Drush permissions command should also be fixed to ignore empty relative paths.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedCommitted. Thanks.
Comment #3
jonhattanBackported.