Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented Mar 23, 2022

fixes #31681, satisfies #31679

@blizzz blizzz requested review from come-nc and nickvergessen March 23, 2022 15:17
@blizzz blizzz added this to the Nextcloud 24 milestone Mar 23, 2022
@blizzz blizzz force-pushed the fix/31681/oracle-str-col branch from aaf4e6a to 563d4b1 Compare March 23, 2022 15:22
@blizzz blizzz force-pushed the fix/31681/oracle-str-col branch from 563d4b1 to f08f09b Compare March 23, 2022 16:32
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

You also need to change the check in AbstractMapping::map
And I do not think the migration step for existing data is correct. Incomplete dn in mapping is just broken mapping lines which will appear as remnants for users and ghost for groups.
These lines should be deleted I suppose? Or the migration should just fail and we consider this an invalid previous state.

Realistically the case should not appear as maximum dn length was 255 not long ago and I would not expect anyone using >4000 dn.

Ok so actually maybe it’s good to truncate the lines because it will allow the admin to use the remnant system to clean up users. And they can see what the dn was to know which entry is concerned.
So maybe leave it like this but log which entries have been truncated?

@blizzz
Copy link
Member Author

blizzz commented Mar 28, 2022

I got confirmation that the first commits unblocks update with Oracle for good.

@blizzz blizzz force-pushed the fix/31681/oracle-str-col branch from f08f09b to fd5318a Compare March 28, 2022 13:28
@blizzz blizzz requested a review from come-nc March 28, 2022 13:28
@come-nc come-nc force-pushed the fix/31681/oracle-str-col branch from fd5318a to 8d1c149 Compare March 29, 2022 15:02
@come-nc come-nc requested a review from nickvergessen March 29, 2022 16:11
@come-nc
Copy link
Contributor

come-nc commented Mar 30, 2022

I do not understand the checkers failure, was there a composer update or something?

@come-nc
Copy link
Contributor

come-nc commented Mar 30, 2022

/rebase

@nextcloud-command nextcloud-command force-pushed the fix/31681/oracle-str-col branch from 870f8ab to 0d4d282 Compare March 30, 2022 12:10
@come-nc
Copy link
Contributor

come-nc commented Mar 30, 2022

/rebase

blizzz and others added 5 commits March 30, 2022 14:43
- enlarging string cols from 255 to more than 4000 fails on default
  Oracle installations for invalid datatype conversion

Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Arthur Schiwon <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
@nextcloud-command nextcloud-command force-pushed the fix/31681/oracle-str-col branch from 0d4d282 to 07ab258 Compare March 30, 2022 14:43
@come-nc come-nc merged commit 2bf0eff into master Mar 30, 2022
@come-nc
Copy link
Contributor

come-nc commented Dec 13, 2022

/backport to stable22

@come-nc
Copy link
Contributor

come-nc commented Dec 13, 2022

/backport to stable23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: reduce ldap_dn field to 4000 bytes

4 participants