Repository navigation
Conversation
occ user:profile only wrote the account property, so the system email address (IUser::getEMailAddress()) and the user backend's display name kept their old values and no UserChangedEvent was fired. Mails kept going to a deleted address and apps listening for the change never noticed. Setting both keys through the IUser setters, as user:setting does, lets the existing listener sync the account. Fixes nextcloud#61831 Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Olav Seyfarth <olav@seyfarth.de>
…layname If IUser already held the requested value, no UserChangedEvent fired and a drifted account property stayed wrong while the command reported success - the very state nextcloud#61831 leaves behind. Invalid addresses reached the system email that mails are sent to, display names were compared untrimmed, a rejected account update crashed the command, and reads, --update-only and --error-if-not-exists still looked at the account property instead of the value the command now writes. Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Olav Seyfarth <olav@seyfarth.de>
nursoda
requested review from
provokateurin and
salmart-dev
and removed request for
a team
December 3, 2026 14:55
Author
|
Note: not quite a first-timer fix after all – it changes behavior (email validation and normalization, display name on read-only backends), has to repair accounts that already drifted, and relies on the Assisted by ClaudeCode:claude-opus-5-5 |
Author
|
/backport to stable34 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
occ user:profile <uid> email|displaynameonly changed the account property. The system email (IUser::getEMailAddress()) and the backend display name kept their old values, and noUserChangedEventfired – so mails still went to a deleted address and listeners never noticed.Both keys now go through the
IUsersetters, asocc user:settingalready does, and the account property is written as well. That also repairs accounts that already drifted.Behavior changes:
--update-onlyand--error-if-not-existsuse the system values for these two keys.Tested on a local sqlite instance: set, delete, invalid input and listing now behave consistently.
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)
Issue analyzed and fix engineered by @nursoda using Claude Code, reviewed with /simplify and /code-review (Opus 5.5: 1× low, 3× high)