-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Security & setup warnings when Nextcloud is in subdirectory #47880
Comments
You can see in the PR that the 30 and 29 version has not yet merged. It is only fixed on master. 30 and 29 will be fixed with the next maintenance release |
... the dupe issue was merged into 29 and 30, and the problem appears to persist in both. |
That issue was set as a duplicate and some other PR was linked, but this does not matter as this issue here was linked to #47883 which fixes the issue and was merged, as you can see in the backports, for 29.0.9 and 30.0.1. If you, after upgrading to one of those versions still encounter this issue, then please open a new issue about that. |
Bug description
My nextcloud instance is running without issues; I use Nextcloud in a subdir of the NGINX webroot setup with a slight variation:
I add the nginx
root
declaration (e.g.root /var/www
) insidelocation ^~ /nextcloud
declaration because I want to have anotherroot
for my nginx global configuration.When I run
occ setupchecks -vv
and use echo to check theURLGenerator->getAbsoluteURL(...)
internal workings I notice thatif (\OC::$CLI && !\defined('PHPUNIT_RUN'))
doesn't take into account the possibility for$url
parameter to already contain the Nextcloud subdir (e.g. /nextcloud). This breaks the url for "JavaScript source map support" and "JavaScript modules support" tests. Nextcloud instance on nginx works fine though; that's, I guess, becauseif (\OC::$WEBROOT !== '' && str_starts_with($url, \OC::$WEBROOT))
is used for web which takes into account the Nextcloud subdir.Steps to reproduce
occ setupchecks -vv
Expected behavior
"JavaScript source map support" and "JavaScript modules support" tests should pass
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
no logs are creating when running
occ setupchecks -vv
Additional info
Nextcloud Signing status was generated by this URL: https://adrhc.go.ro/nextcloud/index.php/settings/integrity/failed
The text was updated successfully, but these errors were encountered: