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

Add warning on update that an app's code is missing #26227

Closed
PVince81 opened this issue Sep 27, 2016 · 6 comments
Closed

Add warning on update that an app's code is missing #26227

PVince81 opened this issue Sep 27, 2016 · 6 comments

Comments

@PVince81
Copy link
Contributor

PVince81 commented Sep 27, 2016

When loading apps during an upgrade, first check whether the app's code is really there.

For example if user_ldap is missing but is enabled, if someone runs an upgrade the repair steps will miss the LDAP users silently.

Best would be to be more strict here and stop the upgrade early.

This happened to me while testing an update from git v9.1.1 to master and forgot to check out the user_ldap repo on master.

@DeepDiver1975 @butonic @VicDeo

@PVince81
Copy link
Contributor Author

I suppose this kind of situation could also happen when people upgrade using tarballs and forget to also move over the installed apps code. This is especially important for authentication apps.

@PVince81
Copy link
Contributor Author

PVince81 commented Dec 8, 2016

@VicDeo can you look into this ? Goal is mostly to make sure that we're not breaking up

Let me know if you need help to setup LDAP quickly for the sake of testing. I usually use this docker https://github.com/owncloud/administration/tree/master/ldap-testing + zombies.

To reproduce the issue:

  1. Checkout stable9.1 where LDAP is bundled
  2. Set it up
  3. Setup LDAP with some users
  4. Checkout master but do NOT check out the user_ldap app (it's not bundled any more)
  5. Run upgrade in verbose mode
  6. Check the logs / progress and see whether LDAP users were iterated over, they are likely not

Expected result

Before the upgrade, when loading authentication apps, notice that code is missing and abort

Actual result

Upgrade runs but repair steps do not run on LDAP users since the app is missing.

@VicDeo
Copy link
Member

VicDeo commented Jan 24, 2017

@PVince81 Should it abort for any missing app or user_ldap only?

@PVince81
Copy link
Contributor Author

I'd say for any app that is expected to be there.

@PVince81
Copy link
Contributor Author

was added in 10.0.0

@lock
Copy link

lock bot commented Jul 31, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants