autoloader.php could raise Not AllowedException #16813
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
name: NotAllowedException raised by autoloader.php if Theming app is disabled / off
about: Internal Server error just after the login
labels: bug, 0. Needs triage
Steps to reproduce
Expected behaviour
layout.user page with app/files
Actual behaviour
Internal server error and log
Server configuration
Operating system:
WSL2
Web server:
nginx
Database:
postgresql
PHP version:
7.3
Nextcloud version:
master / 17.0.0 Beta 1
{"reqId":"FTdKwXVIUVbZCODMZiGT","level":3,"time":"2019-08-20T14:39:21+00:00","remoteAddr":"127.0.0.1","user":"sagis","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"OCP\AutoloadNotAllowedException","Message":"Autoload path not allowed: /mnt/c/localGIT/compagnon/nextcloud-server-master/apps/theming/lib/util.php","Code":0,"Trace":[{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/autoloader.php","line":162,"function":"isValidPath","class":"OC\Autoloader","type":"->","args":["/mnt/c/localGIT/compagnon/nextcloud-server-master/apps/theming/lib/util.php"]},{"function":"load","class":"OC\Autoloader","type":"->","args":["OCA\Theming\Util"]},{"function":"spl_autoload_call","args":["OCA\Theming\Util"]},{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\Theming\Util"]},{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Theming\Util"]},{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/private/ServerContainer.php","line":145,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Theming\Util",true]},....{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/base.php","line":1000,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/files/"]},{"file":"/mnt/c/localGIT/compagnon/nextcloud-server-master/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/mnt/c/localGIT/compagnon/nextcloud-server-master/lib/autoloader.php","Line":137,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"17.0.0.2"}