Projet

Général

Profil

Bug #46788

crash sur validation partiellement configurée

Ajouté par Frédéric Péters il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Mise à Condition (django) et puis pas complétée, ça fait boum ainsi :

Exception:
  type = '<class 'KeyError'>', value = ''value''

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/form.py", line 1055, in django_validation
  1053         if validation['type'] == 'django':
  1054             def django_validation(value):
> 1055                 condition = ValidationCondition(validation['value'], value=value)
  1056                 return condition.evaluate()
  1057             return django_validation

  locals:
     validation = {'type': 'django'}
     value = 'plop'

Fichiers

Révisions associées

Révision f1a893d7 (diff)
Ajouté par Frédéric Péters il y a plus de 3 ans

misc: ignore incomplete configuration of django field validation (#46788)

Historique

#1

Mis à jour par Lauréline Guérin il y a plus de 3 ans

  • Description mis à jour (diff)
#2

Mis à jour par Frédéric Péters il y a plus de 3 ans

#3

Mis à jour par Lauréline Guérin il y a plus de 3 ans

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

Mis à jour par Frédéric Péters il y a plus de 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit f1a893d798be5a3bded715eda83059e2c2064aa8
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Sep 18 15:44:59 2020 +0200

    misc: ignore incomplete configuration of django field validation (#46788)
#5

Mis à jour par Frédéric Péters il y a plus de 3 ans

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

Formats disponibles : Atom PDF