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

calendar migration skips ldap users #22508

Closed
p5n opened this issue Feb 18, 2016 · 9 comments · Fixed by #22584
Closed

calendar migration skips ldap users #22508

p5n opened this issue Feb 18, 2016 · 9 comments · Fixed by #22584
Assignees
Milestone

Comments

@p5n
Copy link

p5n commented Feb 18, 2016

Steps to reproduce

Upgrade from 8.2.2 -> 9.0beta1 with ldap backend enabled

  1. sudo -u http ./occ upgrade
  2. LDAP user's calendars are missing however users from oc_users table are ok

Expected behaviour

All calendars migrated

Actual behaviour

Only local DB user's calendars migrated from calendar to calendar-rework

Server configuration

Operating system: Arch Linux

Web server: apache-2.4.18

Database: mariadb-10.1.11

PHP version: 7.0.3

ownCloud version: (see ownCloud admin page) 9.0beta1

Calendar version: (see ownCloud apps page) -0.8.2 -> -rework-1.0alpha2

Updated from an older ownCloud or fresh install: from 8.2.2

Workaround

  1. Revert db
  2. Copy all ldap users to oc_users
  3. Do upgrade again
  4. delete ldap users back from oc_users table
@DeepDiver1975 DeepDiver1975 added this to the 9.0-current milestone Feb 18, 2016
@DeepDiver1975
Copy link
Member

@p5n Thanks a lot for testing this!

@blizzz @MorrisJobke yet another issue with user enumeration? ldap app no loaded on upgrade?

@PVince81
Copy link
Contributor

@DeepDiver1975 when is that upgrade code running ?
If the LDAP app is loaded later then the user manager won't be available... this reminds me of that old issue: #13865.

I thought it was solved already by making sure the user backend apps are loaded before the other ones at upgrade time ?

@blizzz

@PVince81
Copy link
Contributor

Setting to critical because it could be an issue with app update order

@nickvergessen
Copy link
Contributor

user_ldap is after calendar in the alphabet...

@blizzz
Copy link
Contributor

blizzz commented Feb 22, 2016

@VicDeo since it's updating, does it refer to code parts you are involved in with regard to 9.0? If so, you might have a fix at hand? Otherwise it looks like we need to bring back life into #13865 indeed 🙊

@DeepDiver1975
Copy link
Member

@VicDeo since it's updating, does it refer to code parts you are involved in with regard to 9.0? If so, you might have a fix at hand? Otherwise it looks like we need to bring back life into #13865 indeed 🙊

@blizzz the new updater will start working oc9+ - the upgrade to 9 will be done via the traditional path. In addition the overall upgrade mechanism is handled in core.

Looks like we need to fix the app upgrade order asap ....

@p5n
Copy link
Author

p5n commented Feb 25, 2016

these 2 patches fix this issue

@DeepDiver1975
Copy link
Member

these 2 patches fix this issue

great - thx!

@lock
Copy link

lock bot commented Aug 6, 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 Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants