Repository navigation
3rd-party apps are disabled on upgrade - #14282
Conversation
There was a problem hiding this comment.
Should this be \OC_App with backslash ? Seems the current namespace is OC so it would look for \OC\OC_App here (unless I misunderstand that part)
There was a problem hiding this comment.
there is use OC_App - which implies that there is no namespace to be prepended
There was a problem hiding this comment.
Then you can remove it below :-O \OC_App::disable($app); line 316
There was a problem hiding this comment.
sure - one day
|
Approach looks fine. |
|
Refer to this link for build results (access rights to CI server needed): |
|
What happens if there's a 3rdparty filesystem/user app that could be needed during upgrades |
hmmmm - user backend is indeed a valid thought. We cannot enumerate users if that app is disabled. 👿 shall we disabled these apps after upgrade? This will allow them to be available during upgrade (if necessary) and will not cause issues due to incompatibility. But what happens if the app code snippets used during upgrade are already incompatible? |
|
@karlitschek @PVince81 @icewind1991 what shall we do here now? This change needs to be backported to 8.0.1. |
|
As discussed before, the idea would be to do disable 3rd party apps except the authentication/session ones. Then the auth/session ones shall update first (as per @blizzz's PR). If someone is using a third party app for auth/session/user management, then either:
So I think it makes sense to never disable them. |
|
@PVince81 agreed - will add this .... |
eb08d20 to
025b9f1
Compare
|
Refer to this link for build results (access rights to CI server needed): |
|
Yes. I agree too with @PVince81 3rdparty authentication app can still kill upgrade but what else can we do. |
025b9f1 to
04f15e5
Compare
|
@karlitschek @PVince81 @icewind1991 merge? THX |
|
Refer to this link for build results (access rights to CI server needed): |
|
👍 from my side. @PVince81 What do you think? |
|
Tested upgrading from stable7 to this branch with music app, svg editor enabled. Then I bumped up the version of the music app, and reenabled it. After reenabling it, the update dialog appeared again, but it re-disabled the app. 👎 We need to distinguish between a "system" upgrade and "apps" upgrade. |
|
Oh - nice catch @PVince81 - I'll have a look - THX |
|
hmm - @PVince81 should we disable apps only on major updates? Or on minor as well? |
|
I'd say only disable 3rd party apps on major updates (aka core update) |
04f15e5 to
58cedc0
Compare
|
@PVince81 please have a look - THX |
|
The inspection completed: 3 new issues, 3 updated code elements |
|
@owncloud-bot retest this please |
|
Redid the same test but this time I thrown in LDAP + encryption + gallery in the mix. After the update I re-enabled the music app and it prompted for app upgrade, which I ran. After that the music app was still enabled with the new version. 👍 I get we still don't have a good way to write unit tests for such changes ? (without needing the refactor the whole thing) |
yes - this is true for the time being .... |
|
Refer to this link for build results (access rights to CI server needed): |
3rd-party apps are disabled on upgrade
|
@karlitschek we should backport this - THX |
|
definitely. please backport |
refs #14026
@PVince81 @karlitschek @icewind1991 please review - THX
I'll come up with a second pr to fix this in stable8 as well - as soon as we agree on this approach - THX
Web update:

console print out:
$ ./occ upgrade Turned on maintenance mode Checked database schema update Updated database Disabled 3rd-party app: bookmarks Disabled 3rd-party app: calendar Turned off maintenance mode Update successful Process finished with exit code 0