Skip to content

Conversation

@Jeanstaquet
Copy link
Contributor

@Jeanstaquet Jeanstaquet commented May 14, 2021

Proposed changes (including videos or screenshots)

The app crashed if no custom fields for user profiles have been created by the admin. I fixed this issue. This bug was introduced by a recent commit.

2021-05-14.03-59-55.mp4

Issue(s)

Fixes #22035

Steps to test or reproduce

Further comments

Jeanstaquet and others added 30 commits March 12, 2021 06:46
@Jeanstaquet Jeanstaquet changed the title [FIX] Prevent the app from crashing when there a no custom fields defined [FIX] The app crashed if no custom fields for user profiles have been created by the admin May 14, 2021
@Jeanstaquet Jeanstaquet changed the title [FIX] The app crashed if no custom fields for user profiles have been created by the admin [FIX] The app crashed when you go to the Users list in Admin if no custom fields for user profiles have been created by the admin May 14, 2021
@Jeanstaquet Jeanstaquet changed the title [FIX] The app crashed when you go to the Users list in Admin if no custom fields for user profiles have been created by the admin [FIX] The app crashed when you went to the Users list in Admin if no custom fields for user profiles have been created by the admin May 14, 2021
@Jeanstaquet Jeanstaquet changed the title [FIX] The app crashed when you went to the Users list in Admin if no custom fields for user profiles have been created by the admin [FIX] The application crashes when accessing the Users list in the Administration if no custom fields for user profiles have been created by the administrator. May 14, 2021
Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

I think we should insert a try catch here, just in case we insert an invalid json.

If I'm not wrong there is one more place that we could insert this test ,could you check please? thanks

@Jeanstaquet
Copy link
Contributor Author

I think we should insert a try catch here, just in case we insert an invalid json.

If I'm not wrong there is one more place that we could insert this test ,could you check please? thanks

Hello @ggazzo,
Many thanks for your review and advice. However after your comment I have done multiple tests, and searched in many places, I don't see where I can add to the other similar test. Do you have any details on adding the extra test you mention?
Thanks a lot

@ggazzo
Copy link
Member

ggazzo commented May 14, 2021

by bad I thought we had this in two places

@Jeanstaquet Jeanstaquet requested a review from ggazzo May 14, 2021 17:26
@ggazzo ggazzo changed the title [FIX] The application crashes when accessing the Users list in the Administration if no custom fields for user profiles have been created by the administrator. regression: Fix Users list in the Administration May 17, 2021
@ggazzo ggazzo merged commit 3aff951 into RocketChat:develop May 17, 2021
@Jeanstaquet Jeanstaquet deleted the FixUserInfo branch May 17, 2021 14:38
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The app crashes if you go in the Admin Users section

2 participants