Skip to content

fix(usermanager): Don't throw when checking if a too long user id is an existing user - #52224

Merged
blizzz merged 2 commits into
masterfrom
bugfix/noid/dont-break-when-checking-if-too-long-user-exists
Apr 17, 2025
Merged

fix(usermanager): Don't throw when checking if a too long user id is an existing user#52224
blizzz merged 2 commits into
masterfrom
bugfix/noid/dont-break-when-checking-if-too-long-user-exists

Conversation

@nickvergessen

@nickvergessennickvergessen commented Apr 16, 2025

Copy link
Copy Markdown
Member

Steps

  • Write a comment or chat message with @ followed by 65+ a-z0-9 characters and enable LDAP
  • When LDAP checks if the user exists, it checks preferences
  • But preferences throws InvalidArgumentException in UserConfig::assertParams although it's not documented
  • Regression from IUserConfig #47658@ArtificialOwl

Checklist

@blizzzblizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks fine, one suggestion

Comment threadlib/private/User/DisplayNameCache.php Outdated
…an existing user
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessenforce-pushed the bugfix/noid/dont-break-when-checking-if-too-long-user-exists branch from 8429eab to 775ca88CompareApril 16, 2025 15:47
@nickvergessen

Copy link
Copy Markdown
MemberAuthor

/backport 775ca88 to stable31

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessenforce-pushed the bugfix/noid/dont-break-when-checking-if-too-long-user-exists branch from f464541 to 1ada991CompareApril 17, 2025 07:50
@blizzz
blizzz merged commit 8410d67 into masterApr 17, 2025
@blizzz
blizzz deleted the bugfix/noid/dont-break-when-checking-if-too-long-user-exists branch April 17, 2025 14:55
@nextcloud-botnextcloud-bot mentioned this pull request Aug 19, 2025
Sign up for freeto 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.

6 participants

@nickvergessen@blizzz@miaulalala@provokateurin@come-nc@skjnldsv