-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Apply correct file permissions after renaming #39633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.4-develop
Are you sure you want to change the base?
Apply correct file permissions after renaming #39633
Conversation
Hi @philpage1983. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento create issue |
@magento run all tests |
Can this please get some more priority? It seems a small but important change, since it affects security and file permissions and whether a file can be executable for group and others. |
Preconditions (*)
Magento version : 2.4.2 or greater
Description (*)
Determine if the new path is a file and if so apply the correct file permissions after renaming so that files don't receive execute permissions.
Manual testing scenarios (*)
Expected Result
Uploaded image should have correct file permissions e.g. umask 022 -> 0644
Actual Result
Uploaded image has incorrect file permissions e.g. umask 022 -> 0755
Contribution checklist (*)
Resolved issues: