Repository navigation
Test that the most recent app version is loaded for multi app dir config - #28271
Conversation
|
What we are testing here: having multiple app directories is an OC feature. Let's assume that we have two app directories: apps and apps2 "apps_paths" => [ Now we copy the same app code both into /path/to/owncloud/apps/ and /path/to/owncloud/apps2/ Now we increase version for this app by changing /path/to/owncloud/apps2/appid/appinfo/info.xml We expect that oC will detect that our app needs an upgrade. But it is not. if there are several instances of the same app oC always loads this app from the very first app directory instead of searching the most recent version across all copies of the app. |
|
Moved from #27989 that always fails on Jenkins for unknown reasons |
|
@VicDeo please backport |
|
More trouble ahead, seems there are other cases: #29628 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Attention:
The fix was merged into 10.0.2 #28002
This PR contains integration test to detect future regressions
Description
App version was loaded incorrectly
Motivation and Context
When there are several app directories the app is always loaded from the very first due to the bug in logic
How Has This Been Tested?
config.php
/1001/apps/and/1001/apps2//1001/apps2/Expected: the change is detected and the app is updated
Actual: it's not
/1001/apps/just to be sure it doesn't break anythingExpected & Actual: the change is detected and the app is updated
Types of changes
Checklist: