-
Notifications
You must be signed in to change notification settings - Fork 65
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
Document recent database changes for IMAP-Backend #64
Comments
This are not subtile errors. They are causing a hell of a mess. All group assignments are gone. And another really nice feature is also gone: Sorry but this update broke a lot of things. |
thank you for reporting @mtippmann |
@violoncelloCH sure, it's a difficult problem and there is no good and simple solution that works for everyone. But I think it would be good if users of the plugin are made aware that they need to take action and modify also the database tables in addition to changing the IMAP-Settings - that caught me by surprise, maybe for more experienced users it's clear but I doubt everyone is aware what todo - I'm just asking for a migration section in the docs or maybe a notice-popup for admins if you upgrade from pre 0.6.0 - I wasted an evening trying to figure out what went wrong, so maybe others don't have to do that. Maybe most have migrated by now, I'm not sure. |
no, e.g. i haven't migrated yet! ...and i am now a little bit worried and confused about it:
and i'm not talking about a copy&paste tutorial, but a clear statement about information what to expect and actions to take resp. may be necessary to take! |
@DJCrashdummy as far as I'm aware the chanages are only for the IMAP login because the underlying library was changed from php-imap to roundcube. So you need to change the settings in the
I think maintenance mode should be enough to make the changes if that prevents users from logging in. If you have existing users in the now, if I understood @lsbbs correctly, there might be a problem with your usernames if they have the format Basically for shares and nextcloud to work after the upgrade the user-mapping must be correct - that means no duplicate users i.e. 2 rows with identical uid and Usernames need to be identical to before or you have to also edit the username in other database tables. I'd definitly test this before in a dev-setup. Check if shares and shared-folders work, as of NC 15.0.7. However I'm not a dev and this is how I fixed my installation, but from readin the source this should be all that needs to be done, however no warranty whatsoever. |
@mtippmann Hmm, a UI popup would have been a lot of work and I simply don't have enough spare time atm, sorry :/ It's documented at the top of the Readme that changes of the config.php require updating the database manually... But you're right, that I should have pointed this out. @DJCrashdummy if you consider the points @mtippmann explained, you should be safe! |
Dear all, I can confirm that
Other related points:
Regards, Olivier |
@Aquariu thanks for sharing your experience!
|
sorry for my late "reply", but i had no time for dealing with this issue (reading, researching, testing and still probably break and fix my nextcloud instances), but after EOL of NC15 it had to be done... 😉 beforehand to @violoncelloCH and all contributors: thank you very much for all your work! this app has sightly improved... awesome work! 👏 @mtippmann thank you for sharing your findings, preventing me of surprises & a lot of headache and additionally clearly summing up the fix in your #64 (comment). as you can see i have submitted a PR #125... hopefully it is something you all are ok with? |
If you upgrade user_external to 0.6.x+ you need to adopt to new IMAP configuration settings that's more or less documented in #52 - however due to the changes the contents of the
users_external
database tables also need to be modified if you are having users that predate the update - the contents of thebackend
table are different - where before the full connection string was used now only the hostname is used - this creates some unintended effects:users with the old entry style are not recognized from nextcloud anymore - that creates subtle errors with shares / user listings etc.pp.
if users login a new entry with the hostname of the imap server is created on the
backend
table that creates duplicate uid entries and possible duplicate users. You can fix that directly if you edit theusers_external
database table and replace/rename the old naming in thebackend
column to the new naming and remove any duplicateuid
entries - however some kind of warning or tutorial for migration would be nice!Steps to reproduce
user_external
pluginbackend
in theusers_external
table.Expected behaviour
Tell us what should happen
ideal world: everything should be migrated on it's own with a notification on the migration
at least: notification for admins that manual intervention is required with a detailled tutorial on how to fix things.
Actual behaviour
Tell us what happens instead
Affected Authentication backend
Eg. FTP or IMAP or is it a general problem?
Server configuration
User External App version: (see Nextcloud apps page)
0.6.1
Operating system:
Linux
Web server:
nginx
Database:
MySQL 8.0
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
15.0.5
Updated from an older Nextcloud/ownCloud or fresh install:
Constantly updated for a about 2 years, so lot's of versions.
The text was updated successfully, but these errors were encountered: