Bug #6784
Old session: 'global_block' key not found
Start date:
19 March 2015
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
Description
When you upgrade authentic. Old sessions doesn't work and cause a traceback in get_connection function : 'global_block' key not found.
Files
Associated revisions
History
Updated by Benjamin Dauvergne about 8 years ago
- File 0001-ldap-update-block-saved-in-LDAP-users-objects-with-d.patch 0001-ldap-update-block-saved-in-LDAP-users-objects-with-d.patch added
- Assignee set to Benjamin Dauvergne
- Patch proposed changed from No to Yes
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().