-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_34_STABLE
-
MDL-60234-master -
Easy
-
MDL-59969 introduced a warning for admins if there are development libraries in the Moodle directory and advises to remove them or at least prevent access to them in the webserver. I am grateful for this hint as it gives a big heads-up to admins.
However, there are deployment strategies where you want to have the development libraries on the development / staging systems and just push the whole Moodle codebase (including development libraries) to the prod system when doing an update for production.
As a thorough admin, I prefer having the same codebase on all systems of the software lifecycle and will, of course, forbid web access to /node_modules and /vendor (besides other files like README.md, CHANGELOG.md which might leak other sensitive information like software versions).
For me, this warning from MDL-59969 now is a false-positive because it only checks for the existence of /node_modules or /vendor on the server and not if they really can be accessed by a browser. It would be great if there could be a live check (via curl for example) for the availability of these directories before showing the warning. However, I am aware that this would be a tightrope walk between prevent bugging the admin with a useless warning and triggering a false-negative in webserver configuration edge cases.
- has a non-specific relationship to
-
MDL-84040 Remove the false warning 'Directories with development libraries' check on /admin/index.php?cache=1
-
- Open
-