CLI/Drush cannot do file checks directly

Created on 16 June 2024, about 1 year ago

Problem/Motivation

Because drush is usually running drupal directly important checks on files modification possibilities get no or often wrong results.
This is also related to ✨ "Safe file system permissions" should test the ownership of files and directories Closed: outdated .

Steps to reproduce

For example create a folder "test" in webroot and make is writable by the cli user itself and the webserver. The GUI webserver check detects it correctly but not drush.

Proposed resolution

The minimum we need is to know which system user e.g. it's posix uid is running the related webserver/php process. This can be provided by setting.local.php. Easier to use would be an own protected route only to be called via cli which just returns this uid and guid information. With this information we can do fast tests. Maybe easier to code but with the limitations of the webserver would be an option to run checks through a route.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany c-logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024