🇹🇷Turkey @kyilmaz80

Account created on 19 October 2014, about 10 years ago
#

Recent comments

🇹🇷Turkey kyilmaz80

Hello and thanks for adding this feature,

I tested the new patch on Drupal 10.2.5 and Php 8.2.7. The access logic did not worked as expected. The code below have to be changed:

$is_owner = (bool) $account->id() == $file->getOwnerId();

to

$is_owner = $account->id() == $file->getOwnerId();

bool cast have a problem i think. Overall the patch worked after that. I am also adding the revised patch ( add_permission_for_own_files-r1-240426.patch ).

Best regards,

-Koray

🇹🇷Turkey kyilmaz80

Sorry for the wrong patch. I am uploading the correct one.

🇹🇷Turkey kyilmaz80

I also have this issue. Here is how I solved it:

The files' permission generated by the function file_put_contents() comes from the PHP process. If the php process runs as root, the generated file is also. When running the drush command as root, the generated files' owner will be root. So, running the drush command as a non-root user solves the issue.

Production build 0.71.5 2024