Projet

Général

Profil

Bug #40536

Internal erreur - listes à choix multiples en données de traitement

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
09 mars 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Champ à moitié configuré, sans liste d'options, et action qui va écrire dedans.

Exception:
  type = '<class 'IndexError'>', value = 'list index out of range'

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/fields.py", line 1703, in store_display_value
  1701         choices = []
  1702         for choice in data.get(field_id) or []:
> 1703             if type(options[0]) is str:
  1704                 choices.append(choice)
  1705             elif type(options[0]) in (tuple, list):

  locals:
     choice = 'N'
     choices = []

Fichiers

Révisions associées

Révision e3c5b3be (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

fields: don't crash storing items field if there's no options (#40536)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

#3

Mis à jour par Nicolas Roche il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée

Ack (renvoyer la chaîne vide comme valeur en cas d'erreur)

#4

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit e3c5b3be9b9e86bdf1f2c39f3a71a3fdfb80da79
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Mar 9 11:25:50 2020 +0100

    fields: don't crash storing items field if there's no options (#40536)
#5

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF