Bug #755
Error in loading artifact for SAML2 SSO profile
100%
Description
def reload_artifact(login):
try:
art = LibertyArtifact.objects.get(artifact=login.artifact)
logger.debug('reload_artifact: artifact found %s' % art.content)
login.artifactMessage = art.content
logger.debug('reload_artifact: artifact loaded')
art.delete()
logger.debug('reload_artifact: artifact deleted')
except ObjectDoesNotExist:
logger.debug('reload_artifact: no artifact found')
pass
login.artifactMessage = art.content
Fail with no message.
Historique
Mis à jour par Benjamin Dauvergne il y a plus de 12 ans
Tu pourrais logger l'objet login avant la ligne qui pose problème ?
Mis à jour par Mikaël Ates il y a plus de 12 ans
Opps... en fait j'ai une trace:
[2011-10-12 Wed 15:32:08] DEBUG authentic2.idp.saml.reload_artifact: artifact found
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 39, in wrapped_view
resp = view_func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 52, in wrapped_view
return view_func(*args, **kwargs)
File "/Donnees/Donnees/devs/authentic_20092011/to_commit/authentic2/../authentic2/idp/saml/saml2_endpoints.py", line 672, in artifact
reload_artifact(login)
File "/Donnees/Donnees/devs/authentic_20092011/to_commit/authentic2/../authentic2/idp/saml/saml2_endpoints.py", line 642, in reload_artifact
login.artifactMessage = art.content
File "/usr/local/lib/python2.7/site-packages/lasso.py", line 5365, in setArtifactMessage
_lasso.profile_set_artifact_message(self._cptr, message)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 2817: ordinal not in range(128)
Mis à jour par Benjamin Dauvergne il y a plus de 12 ans
- Assigné à changé de Benjamin Dauvergne à Mikaël Ates
Pour la peine, hop c'est ton ticket maintenant ;-)
Mis à jour par Mikaël Ates il y a plus de 12 ans
- % réalisé changé de 0 à 100
Unicode error due to "Mikaël" attribute value in artifact to store.