Skip to content

[Issue] Apply correct file permissions after renaming #39638

Open
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #39633: Apply correct file permissions after renaming


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 (*)

  1. Upload an image via edit product, edit category or pagebuilder in the admin.

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 (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: Framework/FileIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions