Projet

Général

Profil

Bug #68598

Cellule Fiche(s), mauvaise configuration du custom_schema, varname manquant

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
31 août 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/89817/

KeyError: 'varname'
  File "django/template/base.py", line 829, in _resolve_lookup
    current = current[bit]

AttributeError: 'dict' object has no attribute 'varname'
  File "django/template/base.py", line 837, in _resolve_lookup
    current = getattr(current, bit)

ValueError: invalid literal for int() with base 10: 'varname'
  File "django/template/base.py", line 843, in _resolve_lookup
    current = current[int(bit)]

VariableDoesNotExist: Failed lookup for key [varname] in {'cell_size': '', 'empty_value': '@empty@', 'display_mode': 'text', 'field_content': 'value'}
(45 additional frame(s) were not displayed)
...
  File "django/template/defaulttags.py", line 511, in render
    values = {key: val.resolve(context) for key, val in self.extra_context.items()}
  File "django/template/defaulttags.py", line 511, in <dictcomp>
    values = {key: val.resolve(context) for key, val in self.extra_context.items()}
  File "django/template/base.py", line 692, in resolve
    arg_vals.append(arg.resolve(context))
  File "django/template/base.py", line 796, in resolve
    value = self._resolve_lookup(context)
  File "django/template/base.py", line 848, in _resolve_lookup
    raise VariableDoesNotExist("Failed lookup for key " 

Fichiers

Révisions associées

Révision d1b26246 (diff)
Ajouté par Lauréline Guérin il y a plus d'un an

wcs: fix card rendering with missing varname in custom_schema (#68598)

Historique

#1

Mis à jour par Lauréline Guérin il y a plus d'un an

  • Projet changé de Suivi des traces à Combo
  • Sujet changé de VariableDoesNotExist: Failed lookup for key [varname] in {'cell_size': '', 'empty_value': '@empty@', 'display_mode': 't... à Cellule Fiche(s), mauvaise configuration du custom_schema, varname manquant
  • Assigné à mis à Lauréline Guérin
#2

Mis à jour par Lauréline Guérin il y a plus d'un an

(par contre aucune idée de comment on en arrive à un schema incomplet)

#3

Mis à jour par A. Berriot il y a plus d'un an

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

Mis à jour par Lauréline Guérin il y a plus d'un an

  • Statut changé de Solution validée à Résolu (à déployer)
commit d1b26246b7723890662909779fb75d86a729609f
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Wed Aug 31 22:23:32 2022 +0200

    wcs: fix card rendering with missing varname in custom_schema (#68598)
#5

Mis à jour par Transition automatique il y a plus d'un an

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

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF