Projet

Général

Profil

Bug #55455

Trace sur POST /admin/saml/libertyprovider/add-from-url/

Ajouté par Emmanuel Cazenave il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
07 juillet 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description


File "/home/cazino/src/authentic/src/authentic2/saml/forms.py" in clean
  67.             liberty_provider.full_clean(exclude=('entity_id', 'protocol_conformance'))

File "/home/cazino/envs/publik-env-py3/lib/python3.7/site-packages/django/db/models/base.py" in full_clean
  1191.             self.clean()

File "/home/cazino/src/authentic/src/authentic2/saml/models.py" in clean
  408.         p = lasso.Provider.newFromBuffer(lasso.PROVIDER_ROLE_ANY, force_text(self.metadata.encode('utf8')))

Exception Type: AttributeError at /admin/saml/libertyprovider/add-from-url/
Exception Value: 'bytes' object has no attribute 'encode'

Fichiers

Révisions associées

Révision 67879823 (diff)
Ajouté par Emmanuel Cazenave il y a presque 3 ans

admin saml: handle binary content in metadata http response (#55455)

Historique

#1

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

  • Sujet changé de Trace django 2.2 sur POST /admin/saml/libertyprovider/add-from-url/ à Trace sur POST /admin/saml/libertyprovider/add-from-url/

J'enlève la référence à django 2.2, je ne sais pas si ça a un rapport (ça fait plutôt embrouille python3).

#2

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Emmanuel Cazenave
#3

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

Juste tenir compte du fait que response.content c'est du binaire.

Zone de code absolument pas couverte par les tests.

#4

Mis à jour par Valentin Deniaud il y a presque 3 ans

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

Mis à jour par Emmanuel Cazenave il y a presque 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 6787982330b9313421f64016130b1918b5d5502d
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Wed Jul 7 17:59:30 2021 +0200

    admin saml: handle binary content in metadata http response (#55455)
#6

Mis à jour par Frédéric Péters il y a presque 3 ans

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

Formats disponibles : Atom PDF