Bug #7447
UnicodeDecodeError at /idp/saml2/sso
Début:
03 juin 2015
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
While trying to do SSO with a SP:
UnicodeDecodeError at /idp/saml2/sso 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128) ... Unicode error hint The string that could not be encoded/decoded was: erghe�� Mih
Raised in
/usr/lib/python2.7/dist-packages/authentic2/idp/saml/saml2_endpoints.py in sso set_saml2_response_responder_status_code(login.response, lasso.SAML2_STATUS_CODE_INVALID_NAME_ID_POLICY) logger.warning('NameID format required is not accepted') return finish_sso(request, login) else: logger.debug('no nameID policy format') nid_format = policy.default_name_id_format or 'transient' logger.debug('set nameID policy format %s' % nid_format)
Fichiers
Révisions associées
Historique
Mis à jour par Serghei Mihai il y a presque 9 ans
- Fichier 0001-fix-user-representation-in-logs-7447.patch 0001-fix-user-representation-in-logs-7447.patch ajouté
- Patch proposed changé de Non à Oui
It's dued to user representation in the logs.
Mis à jour par Benjamin Dauvergne il y a presque 9 ans
Mis à jour par Benjamin Dauvergne il y a presque 9 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit authentic2|58078a9c302a79f65cc675ef607ed1128837acae.
Rewrite some logging calls to be sure that arguments are unicode or ASCII strings (fixes #7447)
The rule is that log format string should be ASCII and log format
paramters can be unicode or ASCII string. UTF-8 is forbidden as it
cannot be combined with unicode.