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

fix populating account array with missing default values #29397

Merged
merged 1 commit into from
Oct 23, 2021

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Oct 22, 2021

Today I was greeted with the blue page of death and "OCP\Accounts\PropertyDoesNotExistException Property organisation does not exist.". Turns out the population of missing default values was having a glitch.

  • both $userData and $defaultUserData have numeric indices
  • each element contains at least the name and other fields
  • appending the missing data array is sufficient

@blizzz blizzz added bug 3. to review Waiting for reviews feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) labels Oct 22, 2021
@blizzz blizzz added this to the Nextcloud 23 milestone Oct 22, 2021
@blizzz blizzz requested review from skjnldsv, Pytal, a team, ArtificialOwl and icewind1991 and removed request for a team October 22, 2021 20:07
@blizzz blizzz added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 22, 2021
@blizzz blizzz force-pushed the fix/noid/profile-missing-def-values branch from 3aa67e4 to 405478e Compare October 22, 2021 21:01
Comment on lines -519 to -520
[],
[],
Copy link
Member Author

Choose a reason for hiding this comment

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

@Pytal unless there is a valid case where we receive empty values?

Copy link
Member

Choose a reason for hiding this comment

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

Nope, previous change was just a quick fix. This updated implementation makes much more sense :)

@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 22, 2021
- both $userData and $defaultUserData have numeric indices
- each element contains at least the name and other fields
- appending the missing data array is sufficient

Signed-off-by: Arthur Schiwon <[email protected]>
@blizzz blizzz force-pushed the fix/noid/profile-missing-def-values branch from 405478e to e26d6f0 Compare October 22, 2021 21:06
@skjnldsv skjnldsv merged commit 7e117da into master Oct 23, 2021
@skjnldsv skjnldsv deleted the fix/noid/profile-missing-def-values branch October 23, 2021 08:52
@skjnldsv skjnldsv mentioned this pull request Oct 25, 2021
25 tasks
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 bug feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants