Projet

Général

Profil

Bug #6858

AttributeError when, logged in, accessing homepage

Ajouté par Serghei Mihai il y a environ 9 ans. Mis à jour il y a environ 9 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
30 mars 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

After logging in and returning to homepage the following error occurs:

Exception Value: 'bool' object has no attribute 'enabled'
Exception Location:    /usr/lib/python2.7/dist-packages/authentic2/saml/common.py in get_sp_options_policy, line 680

Révisions associées

Révision 8a285ab8 (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

Fix typo in get_sp_options_policy_default() (fixes #6858)

Révision 3b604e9a (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

Fix typo in get_sp_options_policy_default() (fixes #6858)

Historique

#1

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

In the following code:

def get_sp_options_policy(provider):
    policy = get_sp_options_policy_all()
    if policy:
        return policy
    if provider.service_provider.enable_following_sp_options_policy:
        policy = provider.service_provider.enable_following_sp_options_policy
        if policy and policy.enabled:
            return provider.service_provider.sp_options_policy
    return get_sp_options_policy_default()

the provider.service_provider.enable_following_sp_options_policy line checks the boolean attribute of LibertyServiceProvider model.
I guess there is a typo error in the if policy and policy.enabled: condition

#2

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

- policy = provider.service_provider.enable_following_sp_options_policy
+ policy = provider.service_provider.sp_options_policy
#3

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

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#4

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

  • Assigné à mis à Benjamin Dauvergne
  • Version cible mis à 2.2.0
#5

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

#6

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

  • Version cible changé de 2.2.0 à 2.1.14
#7

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

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

Formats disponibles : Atom PDF