UtrechtUniversity / yoda

A system for reliable, long-term storing and archiving large amounts of research data during all stages of a study.
https://utrechtuniversity.github.io/yoda/
GNU General Public License v3.0
44 stars 26 forks source link

[BUG] case sensitive username comparison between Yoda and SRAM api #323

Closed ccacciari closed 10 months ago

ccacciari commented 10 months ago

Is there an existing issue for this?

Current Behavior

When I promote a user to the group manager role, I get an error: "something went wrong getting the unique user id ..." , even if the user is member of the related SRAM collaboration, as expected. The only visible difference is that the user email address is stored in lower case letters in Yoda and in capital letters in SRAM.

Expected Behavior

I expect that the unique user id is returned independently from the fact that the username is written in capital or lower case letters.

Steps To Reproduce

Environment

- Yoda: 1.9 rc1
- Ansible:
- Operating System: CentOS 7
- Browser: firefox 119.0 (64-bit)

Anything else?

No response

lwesterhof commented 10 months ago

Fixed in https://github.com/UtrechtUniversity/yoda-ruleset/commit/fac2de94350a35d790a04bc53c42a63d9b4d7c41