-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 in lib/autoloader.php::isValidPath() in NC14 and NC15beta2 #10613
Comments
As we haven't seen this in the past again I would close this for now. Thanks for the feedback anyways. 👍 If you still get this then we can have another look at this. |
It is still happening to me with Nextcloud 14.0.3.0. |
It is still happening in NC15 beta2. |
Still happening? |
Yes, running fresh Nextcloud 15.0.2 :
|
Tried to look but i'm running into this one 🤔 |
Ow sorry. Strange that nobody reported that bug yet. Anyway, it's fixed and pushed to master. Manually increase the app version number to make sure DB scheme is upgraded on your test instance. |
Cool. It does work for me with nextcloud 16. Could you try to rebuild the autoloaders? https://github.com/nextcloud/server/blob/master/build/autoloaderchecker.sh (don't run this on production) |
Great, Do you mean that i should deploy Nextcloud from repo's master branch and run autoloaderchecker.sh ? |
Yes. Should also work with stable15, stable14. I guess something with the autoloader is wrong. |
With a fresh NC install from repo's master branch it works like a charm, even without running autoloaderchecker.sh . As I was only using official releases, I was not able to run autoloaderchecker.sh on an existing instance. I guess the issue is solved. Thanks a lot. |
Ok. I'm not sure if everything required for running the tests is included in the official release. |
Not really - we remove all test related code parts and configs. |
Sometimes, the content of
$this->validRoots
in isValidPath() method of Autoloader class is :The method fails because it's calling strlen() on this array's keys.
This only happens when running PhpUnit tests, as described below.
Steps to reproduce
Expected behaviour
Tests should run 😉.
Actual behaviour
PhpUnit fails with following error message :
Server configuration
Operating system:
Debian testing
Web server:
Apache 2.4.33-3
Database:
Sqlite
PHP version:
7.2.4-1
Nextcloud version:
14 beta 3
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
List of activated apps:
Enabled:
Disabled:
Nextcloud configuration:
default fresh install config
The text was updated successfully, but these errors were encountered: