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 for some provider return birthdate:null in userInfo #831

Merged
merged 2 commits into from
Nov 11, 2022

Conversation

pkking
Copy link
Contributor

@pkking pkking commented Nov 11, 2022

Signed-off-by: Li Chaoran pkwarcraft@gmail.com

  • Any changes relevant to users are recorded in the CHANGELOG.md.
  • The documentation has been updated, if necessary.
  • New code is annotated.
  • Changes are covered by tests.

the code is straightforward, no need any comments :)
fix #830

@pkking
Copy link
Contributor Author

pkking commented Nov 11, 2022

@schlenk seems the code check failed has nothing to do with this PR?

@schlenk
Copy link
Collaborator

schlenk commented Nov 11, 2022

yes, that is some mypy changes fallout. I'll take a look later today.

pkking and others added 2 commits November 11, 2022 22:46
Signed-off-by: Li Chaoran <pkwarcraft@gmail.com>
The spec allows null values or empty strings in UserInfo responses.

Make the client accept those values but normalize and drop empty values when parsing the message.
@schlenk
Copy link
Collaborator

schlenk commented Nov 11, 2022

I change the fix a bit. Your fix was fine, but would cause an exception when used in a client to fetch userinfo, as the verify() returned false due to the empty values. Now the code filters out empty or null values from responses.

@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2022

Codecov Report

Merging #831 (c8cab2f) into master (f4a483d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #831      +/-   ##
==========================================
- Coverage   63.80%   63.80%   -0.01%     
==========================================
  Files          64       64              
  Lines       11877    11882       +5     
  Branches     2158     2159       +1     
==========================================
+ Hits         7578     7581       +3     
- Misses       3695     3696       +1     
- Partials      604      605       +1     
Impacted Files Coverage Δ
src/oic/oic/message.py 69.82% <100.00%> (-0.09%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@schlenk schlenk merged commit 954ee64 into CZ-NIC:master Nov 11, 2022
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.

birthdate miss lead a exception
3 participants