Bug #58240
WorkflowImportError: ('Référence à un rôle inconnu'), sur le chargement de snapshot
Début:
27 octobre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/53423/
WorkflowImportError: ('Référence à un rôle inconnu (%s)', ('Admin fonctionnel (test Anaïs)',)) (18 additional frame(s) were not displayed) ... File "wcs/backoffice/snapshots.py", line 161, in view instance = self.snapshot.instance File "wcs/snapshots.py", line 91, in instance check_datasources=getattr(self, '_check_datasources', True), File "wcs/workflows.py", line 819, in import_from_xml_tree action_o.init_with_xml(action, charset, include_id=include_id, snapshot=snapshot) File "wcs/workflows.py", line 1670, in init_with_xml trigger_o.init_with_xml(trigger, charset, include_id=include_id, snapshot=snapshot) File "wcs/workflows.py", line 1099, in init_with_xml el, charset, include_id=include_id, snapshot=snapshot File "wcs/workflows.py", line 1248, in roles_init_with_xml self._roles_init_with_xml('roles', elem, charset, include_id=include_id, snapshot=snapshot) File "wcs/workflows.py", line 1145, in _roles_init_with_xml imported_roles.append(self._get_role_id_from_xml(child, charset, include_id=include_id)) File "wcs/workflows.py", line 1188, in _get_role_id_from_xml raise WorkflowImportError(_('Unknown referenced role (%s)'), (value,))
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Fichier 0001-snapshot-fix-view-restore-workflow-on-missing-role-5.patch 0001-snapshot-fix-view-restore-workflow-on-missing-role-5.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Lauréline Guérin il y a plus de 2 ans
Mis à jour par Lauréline Guérin il y a plus de 2 ans
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 1a39554c2dfbb35ec45f5f696e407f763afcc44b Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Nov 2 11:02:38 2021 +0100 snapshot: fix view/restore workflow on missing role (#58240)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Frédéric Péters il y a 4 mois
- Lié à Bug #47271: restauration d'un workflow avec un rôle qui n'existe plus ajouté
snapshot: fix view/restore workflow on missing role (#58240)