Projet

Général

Profil

Bug #89231

applification: ne pas planter sur une dépendance à un blockdef (KeyError)

Ajouté par Sentry Io il y a 22 jours. Mis à jour il y a 22 jours.

Statut:
Solution déployée
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
08 avril 2024
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

FileNotFoundError: [Errno 2] No such file or directory: b'/var/lib/wcs/tenants/demarches-sathonaycamp.guichet-recette.grandlyon.com/blockdefs-slug/identite_usager_sve'
  File "wcs/qommon/storage.py", line 579, in get_filename
    fd = open(force_bytes(filename, 'utf-8'), 'rb')  # pylint: disable=consider-using-with

KeyError: 
(4 additional frame(s) were not displayed)
...
  File "wcs/formdef.py", line 712, in get_dependencies
    yield from field.get_dependencies()
  File "wcs/fields/block.py", line 145, in get_dependencies
    yield self.block
  File "wcs/fields/block.py", line 134, in block
    self._block = BlockDef.get_on_index(self.block_slug, 'slug')
  File "wcs/qommon/storage.py", line 547, in get_on_index
    return cls.get_filename(filename, ignore_errors=ignore_errors, ignore_migration=ignore_migration)
  File "wcs/qommon/storage.py", line 584, in get_filename
    raise KeyError()

Demandes liées

Lié à w.c.s. - Bug #89241: édition d'un champ bloc de champs, blockdef manquant (KeyError)Solution déployée08 avril 2024

Actions

Révisions associées

Révision 94292cca (diff)
Ajouté par Lauréline Guérin il y a 22 jours

applification: fix dependencies with unknown blockdef (#89231)

Historique

#1

Mis à jour par Lauréline Guérin il y a 22 jours

  • Projet changé de Suivi des traces à w.c.s.
#3

Mis à jour par Robot Gitea il y a 22 jours

  • Statut changé de Nouveau à Solution proposée
  • Assigné à mis à Lauréline Guérin

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#4

Mis à jour par Robot Gitea il y a 22 jours

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

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Robot Gitea il y a 22 jours

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

Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :

#6

Mis à jour par Lauréline Guérin il y a 22 jours

  • Lié à Bug #89241: édition d'un champ bloc de champs, blockdef manquant (KeyError) ajouté
#7

Mis à jour par Transition automatique il y a 22 jours

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

Formats disponibles : Atom PDF