Projet

Général

Profil

Development #32040

tests FranceConnect cassés après #31937

Ajouté par Frédéric Péters il y a environ 5 ans. Mis à jour il y a environ 5 ans.

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

100%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

cf https://jenkins2.entrouvert.org/job/authentic2-auth-fc/202/

src/authentic2_auth_fc/views.py:365: in get
    self.update_user_info()
src/authentic2_auth_fc/views.py:330: in update_user_info
    utils.apply_user_info_mappings(self.fc_account.user, self.user_info)
src/authentic2_auth_fc/utils.py:160: in apply_user_info_mappings
    setattr(user.attributes, attribute, value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentic2.custom_user.models.Attributes object at 0x7fea8bfa4c50>
name = 'email', value = 'john.doe@example.com'

    def __setattr__(self, name, value):
        atv = self.values.get(name)
        if atv:
            atv.attribute.set_value(self.owner, value, verified=bool(self.verified), attribute_value=atv)
        else:
            attribute = get_attributes_map().get(name)
            if not attribute:
>               raise AttributeError(name)
E               AttributeError: email

Fichiers

Révisions associées

Révision 56dd857a (diff)
Ajouté par Benjamin Dauvergne il y a environ 5 ans

user: fix hasattr() on attributes (fixes #32040)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • Assigné à mis à Benjamin Dauvergne
#2

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

Effectivement petit souci avec hasattr().

#3

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 5 ans

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

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 56dd857a39b9db0d301115f7483aca88a0261b30
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Sun Apr 7 16:18:12 2019 +0200

    user: fix hasattr() on attributes (fixes #32040)
#5

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • % réalisé changé de 0 à 100
#6

Mis à jour par Frédéric Péters il y a environ 5 ans

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

Formats disponibles : Atom PDF