-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[stable22] ensure that user and group IDs in LDAP's tables are also max 64chars #28968
Conversation
28b98ca
to
7902520
Compare
$u->setParameter('uuid', $row['directory_uuid']); | ||
$u->setParameter('newId', $newId); | ||
try { | ||
$u->executeStatement(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the cursor will operate on the old result set and won't lock the pending updates, hope this works with all DBMS ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why should it not? separate queries, separate cursors.
this looks scary, will this mess up any mappings ? is "owncloud_name" the same as user id ? for example if we have a user in a channel in Talk by the old user id, will that user still be recognized properly after the migration ? |
yes, the And yes, the user id was shortened, but since it was too long, Nextcloud would not have been operational for users with too long user ids, i.e. login would trigger a 500, direct sharing would equally fail. Shortening the values is necessary for shrinking the column. It is a rare corner case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- limitation by core tables (e.g. sharing), IDs are always 64chars - when longer group IDs were requested they are hashed (does not affect displaynames) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7902520
to
8586d60
Compare
I've solved the conflict on the version number |
⚠️ This backport had conflicts and is incomplete ⚠️ ✔️backport of #28876