Bug #89064
ignore_error pas géré sur get_on_index avec cache (sur KeyError: 'gestion-des-erreurs-dans-les-demarches')
Début:
04 avril 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/123783/
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/wcs/tenants/demarches.guichet-recette.grandlyon.com/formdefs-url_name/gestion-des-erreurs-dans-les-demarches' File "wcs/qommon/storage.py", line 541, in get_on_index object_id = os.readlink(filename).split('/')[-1] KeyError: 'gestion-des-erreurs-dans-les-demarches' (6 additional frame(s) were not displayed) ... File "wcs/wf/create_formdata.py", line 715, in perform formdef = self.formdef File "wcs/wf/create_formdata.py", line 406, in formdef return self._resolve_formdef_slug(self.formdef_slug) File "wcs/wf/create_formdata.py", line 401, in _resolve_formdef_slug return self.formdef_class.get_by_urlname(formdef_slug, use_cache=True, ignore_errors=True) File "wcs/formdef.py", line 792, in get_by_urlname return cls.get_on_index( File "wcs/qommon/storage.py", line 543, in get_on_index raise KeyError(id)
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 26 jours
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/1359
- Titre : WIP: storage: add support for ignore_errors to get_on_index with cache (#89064)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1359/files
Mis à jour par Robot Gitea il y a 26 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 26 jours
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/1359
- Titre : storage: add support for ignore_errors to get_on_index with cache (#89064)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1359/files
Mis à jour par Transition automatique il y a 26 jours
- Statut changé de Résolu (à déployer) à Solution déployée
storage: add support for ignore_errors to get_on_index with cache (#89064)