Skip to content
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

Make sure to do priority app upgrades first #25034

Merged

Conversation

juliusknorr
Copy link
Member

Otherwise those apps might not be loaded when the others app migrations are running. The previous loading of authentication apps in the upgrade step never worked as it just returns in maintenance mode.

This has shown causing issues with deck for example where we have a cleanup migration step that checks if a user exists. Now when running this post-migration step with LDAP users the user_ldap app would have never been loaded as the others apps get upgraded first, which leads to the user existance check to always return false.

Otherwise those apps might not be loaded when the others app migrations
are running. The previous loading of authentication apps in the upgrade
step never worked as it just returns in maintenance mode

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@@ -267,7 +267,6 @@ private function doUpgrade($currentVersion, $installedVersion) {
$this->upgradeAppStoreApps($autoDisabledApps, true);

// install new shipped apps on upgrade
OC_App::loadApps(['authentication']);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are in maintenance mode here already, so this never worked due to

if ((bool) \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
return false;

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@juliusknorr
Copy link
Member Author

/backport to stable20

@juliusknorr
Copy link
Member Author

/backport to stable19

@juliusknorr
Copy link
Member Author

/backport to stable18

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 🙈

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 8, 2021
@MorrisJobke MorrisJobke merged commit 8f614ac into master Jan 11, 2021
@MorrisJobke MorrisJobke deleted the bugfix/noid/load-authentication-for-app-upgrades branch January 11, 2021 13:44
@MorrisJobke MorrisJobke added this to the Nextcloud 21 milestone Jan 11, 2021
@MorrisJobke
Copy link
Member

@rullzer Something for todays RCs or next ones?

@MorrisJobke
Copy link
Member

If the next ones, then we can close the 18 PR.

@rullzer rullzer mentioned this pull request Jan 12, 2021
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants