Projet

Général

Profil

Bug #55515

KeyError sur accès bloc qui n'existe plus

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
12 juillet 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

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

Stack trace (most recent call first):
  File "/usr/lib/python3/dist-packages/wcs/qommon/storage.py", line 528, in get_filename
   526         finally:
   527             if fd:
>  528                 fd.close()
   529         if cls._reset_class:
   530             o.__class__ = cls

  locals:
     cls = <class 'wcs.blocks.BlockDef'>
     fd = None
     filename = '/var/lib/wcs/tenants/demarches-ville-caluire.toodego.com/blockdefs/1'
     ignore_errors = False
     ignore_migration = False
     kwargs = {}

  File "/usr/lib/python3/dist-packages/wcs/qommon/storage.py", line 443, in get
   441         filename = os.path.join(cls.get_objects_dir(), fix_key(id))
   442         return cls.get_filename(
>  443             filename, ignore_errors=ignore_errors, ignore_migration=ignore_migration, **kwargs
   444         )
   445

  locals:
     cls = <class 'wcs.blocks.BlockDef'>
     filename = '/var/lib/wcs/tenants/demarches-ville-caluire.toodego.com/blockdefs/1'
     id = '1'
     ignore_errors = False
     ignore_migration = False
     kwargs = {}
...
PATH_INFO       '/backoffice/forms/blocks/1/'

Fichiers

Révisions associées

Révision dc67aa7b (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

backoffice: return a 404 on missing block (#55515)

Historique

#1

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

#2

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

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

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

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit dc67aa7b1cd14b2b5aed628a6a3a4ef292ab0972
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Jul 12 14:41:54 2021 +0200

    backoffice: return a 404 on missing block (#55515)
#5

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

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

Formats disponibles : Atom PDF