Projet

Général

Profil

Bug #89241

édition d'un champ bloc de champs, blockdef manquant (KeyError)

Ajouté par Sentry Io il y a 22 jours. Mis à jour il y a 18 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/123844/

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: 
(14 additional frame(s) were not displayed)
...
  File "quixote/directory.py", line 92, in _q_traverse
    return obj()
  File "wcs/admin/fields.py", line 103, in _q_index
    self.field.block.get_admin_url(),
  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 #89231: applification: ne pas planter sur une dépendance à un blockdef (KeyError)Solution déployée08 avril 2024

Actions

Révisions associées

Révision 4869b1ba (diff)
Ajouté par Frédéric Péters il y a 18 jours

misc: use uniform label for block of fields (#89241)

Révision 61b938e0 (diff)
Ajouté par Frédéric Péters il y a 18 jours

backoffice: mark missing block as missing when editing form field (#89241)

Historique

#1

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

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

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

  • Lié à Bug #89231: applification: ne pas planter sur une dépendance à un blockdef (KeyError) ajouté
#3

Mis à jour par Frédéric Péters il y a 22 jours

  • Assigné à mis à Frédéric Péters
#4

Mis à jour par Robot Gitea il y a 22 jours

  • Statut changé de Nouveau à En cours

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

#5

Mis à jour par Robot Gitea il y a 22 jours

  • Statut changé de En cours à Solution proposée
#6

Mis à jour par Robot Gitea il y a 21 jours

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

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

#7

Mis à jour par Robot Gitea il y a 18 jours

  • 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 :

#8

Mis à jour par Transition automatique il y a 18 jours

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

Formats disponibles : Atom PDF