Projet

Général

Profil

Bug #7447

UnicodeDecodeError at /idp/saml2/sso

Ajouté par Serghei Mihai il y a presque 9 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision 58078a9c (diff)
Ajouté par Benjamin Dauvergne il y a presque 9 ans

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.

Historique

#1

Mis à jour par Serghei Mihai il y a presque 9 ans

It's dued to user representation in the logs.

#3

Mis à jour par Serghei Mihai il y a presque 9 ans

Ack.
Thank you

#4

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
#5

Mis à jour par Serghei Mihai il y a plus de 8 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF