Bug #51295
TypeError: string object required
Début:
19 février 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/29559/
FileNotFoundError: [Errno 2] No such file or directory: b'/var/lib/wcs/demarches-essonne.test.entrouvert.org/carddefs-url_name/None' File "wcs/qommon/storage.py", line 506, in get_filename fd = open(force_bytes(filename, 'utf-8'), 'rb') KeyError: (11 additional frame(s) were not displayed) ... File "wcs/workflows.py", line 72, in perform_items url = item.perform(formdata) or url File "wcs/wf/edit_carddata.py", line 46, in perform carddef = CardDef.get_by_urlname(self.formdef_slug) File "wcs/formdef.py", line 567, in get_by_urlname return cls.get_on_index(url_name, 'url_name', ignore_migration=ignore_migration) File "wcs/qommon/storage.py", line 466, in get_on_index return cls.get_filename(filename, ignore_errors=ignore_errors, ignore_migration=ignore_migration) File "wcs/qommon/storage.py", line 511, in get_filename raise KeyError() TypeError: string object required (3 additional frame(s) were not displayed) ... File "wcs/compat.py", line 253, in quixote return pub.process_request(pub.get_request()) File "wcs/compat.py", line 212, in process_request output = self.finish_failed_request() File "wcs/qommon/publisher.py", line 299, in finish_failed_request error_page = self._generate_cgitb_error(request, original_response, exc_type, exc_value, tb) File "quixote/publish.py", line 212, in _generate_cgitb_error s = str(util.dump_request(request)) File "quixote/util.py", line 342, in dump_request r += row_fmt % (k, v)
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Projet changé de Suivi des traces à w.c.s.
- Assigné à mis à Lauréline Guérin
File "wcs/wf/edit_carddata.py", line 46, in perform carddef = CardDef.get_by_urlname(self.formdef_slug)
self.formdef_slug n'est pas configuré
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Fichier 0001-workflows-fix-edit-carddata-when-formdef-is-not-set-.patch 0001-workflows-fix-edit-carddata-when-formdef-is-not-set-.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 environ 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a environ 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 2cb7da958b0d488f414459cc07b353a9464e5bdb Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Fri Feb 19 14:43:00 2021 +0100 workflows: fix edit carddata when formdef is not set (#51295)
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Résolu (à déployer) à Solution déployée
workflows: fix edit carddata when formdef is not set (#51295)