Bug #39350
crash sur attribution d'un rôle, request.user → «AttributeError, can't set attribute »
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
28 janvier 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Exception: type = '<class 'AttributeError'>', value = 'can't set attribute' Stack trace (most recent call first): File "/usr/lib/python3/dist-packages/wcs/wf/roles.py", line 99, in perform_local 97 # if we changed the currently logged in user, we update it with the 98 # changes. > 99 request.user = user 100 101 def perform_idp(self, user, formdata, role_id): locals: formdata = <Liaison-Avec-Un-Dui 'Liaison avec un DUI - n°210-69' id:69> request = <wcs.compat.CompatHTTPRequest object at 0x7f0b10062d68> role_id = '610c08020c1e49c5884264f47cb574c3' self = <AddRoleWorkflowStatusItem 2> user = <SqlUser 'Jean TEST TROIS' id:399> File "/usr/lib/python3/dist-packages/wcs/wf/roles.py", line 85, in perform 83 return 84 user = get_publisher().user_class.get(formdata.user_id) > 85 self.perform_local(user, formdata, role_id) 86 if user.name_identifiers and is_idp_managing_user_attributes(): 87 self.perform_idp(user, formdata, role_id) locals: formdata = <Liaison-Avec-Un-Dui 'Liaison avec un DUI - n°210-69' id:69> role_id = '610c08020c1e49c5884264f47cb574c3' self = <AddRoleWorkflowStatusItem 2> user = <SqlUser 'Jean TEST TROIS' id:399
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-workflows-use-hidden-attribute-to-alter-user-after-r.patch 0001-workflows-use-hidden-attribute-to-alter-user-after-r.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
yep, comme
* fc7b80971 api: alter request user using hidden attribute (#36515)
Mis à jour par Thomas Noël il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 674ca5b6872489839c34002d2cc0a875b251b812 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Tue Jan 28 17:00:02 2020 +0100 workflows: use hidden attribute to alter user after role change using (#39350)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: use hidden attribute to alter user after role change using (#39350)