Projet

Général

Profil

Bug #35419

agent authentic, crash sur métadonnées avec des caractères accentués

Ajouté par Frédéric Péters il y a plus de 4 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
16 août 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://idp-test-entrouvert.montpellier3m.fr/ -" failed: '' 'Traceback (most recent call last):
  File "/usr/lib/authentic2/manage.py", line 21, in <module>
    execute_from_command_line(sys.argv[:1] + argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/apps.py", line 45, in new_execute
    return old_execute(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/hobo/agent/common/management/commands/hobo_deploy.py", line 72, in handle
    self.deploy(base_url, hobo_environment, ignore_timestamp)
  File "/usr/lib/python2.7/dist-packages/hobo/agent/common/management/commands/hobo_deploy.py", line 97, in deploy
    self.deploy_specifics(hobo_environment, tenant)
  File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/management/commands/hobo_deploy.py", line 142, in deploy_specifics
    if self.check_saml_metadata(metadata_response.text):
  File "/usr/lib/python2.7/dist-packages/hobo/agent/authentic2/management/commands/hobo_deploy.py", line 282, in check_saml_metadata
    root = ET.fromstring(saml_metadata)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1651, in feed
    self._parser.Parse(data, 0)
UnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\xe8\' in position 4090: ordinal not in range(128)

Fichiers

Révisions associées

Révision ec976813 (diff)
Ajouté par Frédéric Péters il y a plus de 4 ans

authentic agent: pass bytes to ElementTree for metadata validation (#35419)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 4 ans

#2

Mis à jour par Benjamin Dauvergne il y a plus de 4 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit ec976813b0388ce3354b43b1a45785d51e667d22
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Aug 16 18:34:48 2019 +0200

    authentic agent: pass bytes to ElementTree for metadata validation (#35419)
#4

Mis à jour par Frédéric Péters il y a plus de 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF