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

[stable26] fix: always use display name from correct backend #39991

Merged
merged 1 commit into from Sep 6, 2023

Conversation

max-nextcloud
Copy link
Contributor

Backport of #39770

Overwrite the display name after the account is initialized
when using an instacne of IGetDisplayNameBackend.

Before when using a variation of user_oidc and registering
a Backend.php implementing IGetDisplayNameBackend
the personal setting page shows 'uid'.

The UserManager/AccountManager seems not to use consistently
the correct backend.

The correct backend is used in this sequence:

server/lib/private/TemplateLayout.php

          $userDisplayName = \OC_User::getDisplayName();
          $this->assign(user_displayname, $userDisplayName);

In the settings page, it definitely not calls the registered backend,
but seems to fall back to default Backend and shows (usually) uid
or a value from the standard account property table.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud added this to the Nextcloud 26.0.6 milestone Aug 22, 2023
@blizzz blizzz mentioned this pull request Sep 5, 2023
@blizzz blizzz added the 3. to review Waiting for reviews label Sep 5, 2023
@max-nextcloud
Copy link
Contributor Author

cypress seems to fail like this fairly often on stable26.

@max-nextcloud max-nextcloud merged commit dc73199 into stable26 Sep 6, 2023
34 of 37 checks passed
@max-nextcloud max-nextcloud deleted the backport/39770/stable26 branch September 6, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants