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

Keycloak library issue setting attributes for users without attributes #525

Closed
zsinnema opened this issue Jul 19, 2022 · 0 comments · Fixed by #526
Closed

Keycloak library issue setting attributes for users without attributes #525

zsinnema opened this issue Jul 19, 2022 · 0 comments · Fixed by #526
Assignees
Labels
bug Something isn't working
Milestone

Comments

@zsinnema
Copy link
Contributor

When a user has no attributes in keycloak the ch keycloak library (File "/libraries/cloudharness-common/cloudharness/auth/keycloak.py", line 540, in user_add_update_attribute) raises TypeError: 'NoneType' object does not support item assignment
This is because the attributes of a keycloak is a None value and not an empty list [] / empty dict {}

@zsinnema zsinnema self-assigned this Jul 19, 2022
@zsinnema zsinnema added the bug Something isn't working label Jul 19, 2022
@zsinnema zsinnema added this to the v2.0.0 milestone Jul 19, 2022
filippomc added a commit that referenced this issue Jul 19, 2022
#525 fixes None type error when setting an attribute on an user without attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant