Skip to content

Calling setup:config:set results in checking pub/media files permissions #38435

Open
@lbajsarowicz

Description

@lbajsarowicz

Preconditions and environment

  • Magento 2.4.6-p3

Steps to reproduce

  1. Install Vanilla Magento
  2. Connect to the server and change random file permissions in pub/media to non-writeable
  3. Call bin/magento setup:config:set with any change

Expected result

The configuration is updated, no error thrown.

Actual result

bin/magento setup:config:set --no-interaction --cache-id-prefix=9b27b_ --page-cache-id-prefix=9b27b_
In ConfigModel.php line 171:

Missing write permissions to the following paths:                            
   /home/jetrails/xxx.com/releases/20240208120923/pub/media/logo.png

Additional information

The issue is in \Magento\Framework\Setup\FilePermissions::getMissingWritablePathsForInstallation, for some reason it not only validates permissions to write to the required directory, but also all the directories and files in it.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: SetupIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.6-p3Indicates 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