Bug #84664
accès à un élément de bloc n'existant pas (IndexError: list index out of range)
Début:
13 décembre 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/117352/
Tentative d'obtenir le troisième élément d'un bloc de de deux éléments.
KeyError: 'form_var_fichier_justificatif_domicile_2_piece_jointe' File "wcs/variables.py", line 1259, in __getattr__ return self.__getitem__(attr) File "wcs/variables.py", line 1209, in __getitem__ field = self.varnames[key] AttributeError: form_var_fichier_justificatif_domicile_2_piece_jointe File "wcs/variables.py", line 1052, in get return getattr(self.var, key) File "wcs/variables.py", line 1261, in __getattr__ raise AttributeError(attr) IndexError: list index out of range (44 additional frame(s) were not displayed) ... File "wcs/qommon/substitution.py", line 235, in get_path return self.get_path(value, rest) File "wcs/qommon/substitution.py", line 235, in get_path return self.get_path(value, rest) File "wcs/qommon/substitution.py", line 232, in get_path value = resolve(path[:i]) File "wcs/qommon/substitution.py", line 220, in resolve return base[key] File "wcs/variables.py", line 1787, in __getitem__ data = self._formdata.data.get(self._field.id)['data'][int(key)]
Révisions associées
Historique
Mis à jour par Robot Gitea il y a 5 mois
- 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/923
- Titre : WIP: misc: protect against out-of-bounds blow row access (#84664)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/923/files
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Solution proposée à Solution validée
Paul Marillonnet (pmarillonnet) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 5 mois
- 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/923
- Titre : misc: protect against out-of-bounds blow row access (#84664)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/923/files
Mis à jour par Transition automatique il y a 5 mois
- Statut changé de Résolu (à déployer) à Solution déployée
misc: protect against out-of-bounds blow row access (#84664)