Bug #6784
Old session: 'global_block' key not found
Début:
19 mars 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
When you upgrade authentic. Old sessions doesn't work and cause a traceback in get_connection function : 'global_block' key not found.
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0001-ldap-update-block-saved-in-LDAP-users-objects-with-d.patch 0001-ldap-update-block-saved-in-LDAP-users-objects-with-d.patch ajouté
- Assigné à mis à Benjamin Dauvergne
- Patch proposed changé de Non à Oui
ldap: update block saved in LDAP users objects with default values (#6784)
If a session is older thant the last upgrade then it can happend that
user.block miss keys which are now mandatory and have a default value.
To be sure those keys exist we update the block with default value each
time it is used, i.e. in LDAPUser.get_connection().