Closed ananduri9 closed 1 year ago
This is python3-saml
– you should use https://github.com/onelogin/python-saml/ for Python 2...
python3-saml
is still installable via pip with Python 2 because it isn't enforcing a minimum Python. In addition, this library python3-saml
wrote a compatibility file compat.py to handle issues like the one mentioned in the original issue description.
This bug is still valid for users who are using Python 2.7 and the latest version of python3-saml
.
If there is a desire to stop supporting Python 2.7 support for this library, you could deprecate support and version the python3-saml
so it will not install on Python 2.7 environments. However, shouldn't prevent the fix presented from being added.
@akx would you be able to merge this fix in for us?
@alimpon No, I'm not a maintainer of this project.
oh sorry. I think @eriktalvi is a maintainer, could you please help merge this in?
@eriktalvi bump again to merge this please
Hello there! We've come across some bugs like the following using this library's
add_sign
function:It looks like we're getting this error when a user's name or other data has a non-ascii character that goes through this function - and we're still using Python 2 for this.
I believe my fix should allow for gracefully handling unicode characters in Python 2. Let me know if you have any questions/concerns.