Bug #68166
échec scan dépendances sur action "dispatch"
Début:
15 août 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
aoû 15 17:52:53 wcs uwsgi[1295738]: Internal Server Error: /api/export-import/workflows/wf-traitement-des-dmi/dependencies/ aoû 15 17:52:53 wcs uwsgi[1295738]: Traceback (most recent call last): aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner aoû 15 17:52:53 wcs uwsgi[1295738]: response = get_response(request) aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response aoû 15 17:52:53 wcs uwsgi[1295738]: response = self.process_exception_by_middleware(e, request) aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response aoû 15 17:52:53 wcs uwsgi[1295738]: response = wrapped_callback(request, *callback_args, **callback_kwargs) aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/wcs/api_export_import.py", line 71, in f aoû 15 17:52:53 wcs uwsgi[1295738]: return func(*args, **kwargs) aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/wcs/api_export_import.py", line 194, in object_dependencies aoû 15 17:52:53 wcs uwsgi[1295738]: for dependency in obj.get_dependencies(): aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 651, in get_dependencies aoû 15 17:52:53 wcs uwsgi[1295738]: yield from status.get_dependencies() aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 1731, in get_dependencies aoû 15 17:52:53 wcs uwsgi[1295738]: yield from action.get_dependencies() aoû 15 17:52:53 wcs uwsgi[1295738]: File "/usr/lib/python3/dist-packages/wcs/wf/dispatch.py", line 147, in get_dependencies aoû 15 17:52:53 wcs uwsgi[1295738]: yield from get_role_dependencies([x.get('role_id') for x in self.rules]) aoû 15 17:52:53 wcs uwsgi[1295738]: TypeError: 'NoneType' object is not iterable
en dispatch manuel l'attribut "rules" est à None.
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus d'un an
- Fichier 0001-api-fix-scanning-deps-of-manual-unconfigured-dispatc.patch 0001-api-fix-scanning-deps-of-manual-unconfigured-dispatc.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 d'un an
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
commit 49b76c01cfdbe320639a8909c7aabdb649a36ebc Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Aug 15 18:03:35 2022 +0200 api: fix scanning deps of manual/unconfigured dispatch action (#68166)
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
api: fix scanning deps of manual/unconfigured dispatch action (#68166)