Bug #88885
erreur au log de changement jwkset (AttributeError: 'NoneType' object has no attribute 'get')
Début:
29 mars 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/123708/
AttributeError: 'NoneType' object has no attribute 'get' (5 additional frame(s) were not displayed) ... File "authentic2/manager/views.py", line 147, in dispatch return super().dispatch(request, *args, **kwargs) File "django/views/generic/base.py", line 98, in dispatch return handler(request, *args, **kwargs) File "authentic2/apps/authenticators/views.py", line 126, in post form.save() File "authentic2_auth_oidc/forms.py", line 46, in save self.instance.log_jwkset_change(self.old_jwkset, self.instance.jwkset_json) File "authentic2_auth_oidc/models.py", line 287, in log_jwkset_change new_kids = {kid for key in new_jwkset.get('keys', []) if (kid := key.get('kid'))}
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ un mois
- Projet changé de Suivi des traces à Authentic 2
Mis à jour par Robot Gitea il y a environ un mois
- Statut changé de Nouveau à Solution proposée
Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/authentic/pulls/288
- Titre : auth_oidc: prevent trace when jwkset_json is None (#88885)
- Modifications : https://git.entrouvert.org/entrouvert/authentic/pulls/288/files
Mis à jour par Robot Gitea il y a 28 jours
- Statut changé de Solution proposée à Solution validée
Thomas NOËL (tnoel) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 28 jours
- Statut changé de Solution validée à Résolu (à déployer)
Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/authentic/pulls/288
- Titre : auth_oidc: prevent trace when jwkset_json is None (#88885)
- Modifications : https://git.entrouvert.org/entrouvert/authentic/pulls/288/files
Mis à jour par Transition automatique il y a 11 jours
- Statut changé de Résolu (à déployer) à Solution déployée
auth_oidc: prevent trace when jwkset_json is None (#88885)