Bug #6858
AttributeError when, logged in, accessing homepage
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
Fix typo in get_sp_options_policy_default() (fixes #6858)
Historique
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
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
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
Appliqué par commit 8a285ab8e9c4da571c245ae2b920f989634b4eb1.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Assigné à mis à Benjamin Dauvergne
- Version cible mis à 2.2.0
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
Appliqué par commit 3b604e9aa2dc569d783fcfab98df2d0f76d47817.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Résolu (à déployer) à Fermé
Fix typo in get_sp_options_policy_default() (fixes #6858)