Bug #53864
'RestrictedApiUser' object has no attribute 'anonymous'
Début:
07 mai 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'AttributeError'>', value = ''RestrictedApiUser' object has no attribute 'anonymous'' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/forms/common.py", line 170, in check_auth 168 else: 169 user = get_request().user > 170 if user and not user.anonymous: 171 if self.filled.is_submitter(user): 172 mine = True locals: api_call = True mine = False self = <wcs.api.ApiFormdataPage object at 0x7f7e07a96630> session = <Session at 7f7e075a5d68: None> user = <wcs.api_access.ApiAccess.get_as_api_user.<locals>.RestrictedApiUser object at 0x7f7e07a4e780> ... REQUEST_URI '/api/forms/inscription-aux-activites/1/?full=on'
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a presque 3 ans
- Fichier 0001-api-mark-role-restricted-api-user-as-non-anonymous-5.patch 0001-api-mark-role-restricted-api-user-as-non-anonymous-5.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a presque 3 ans
- Fichier 0001-api-mark-role-restricted-api-user-as-non-anonymous-5.patch 0001-api-mark-role-restricted-api-user-as-non-anonymous-5.patch ajouté
Avec des tests quand même, parce que bon.
Mis à jour par Thomas Noël il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
"Je vous l'avais bien dit".
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 3a641631b1b6afd88e4995b9fd66372d08f971a9 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Fri May 7 18:52:01 2021 +0200 api: mark role-restricted api user as non anonymous (#53864)
Mis à jour par Frédéric Péters il y a presque 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
api: mark role-restricted api user as non anonymous (#53864)