Projet

Général

Profil

Bug #28650

trace sur l'accès à un fichier temporaire n'existant pas/plus/inacessible/etc.

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
05 décembre 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

Exception:
  type = '<type 'exceptions.TypeError'>', value = ''NoneType' object has no attribute '__getitem__''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/forms/root.py", line 1154, in tempfile
  1152             raise errors.TraversalError()
  1153         response = get_response()
> 1154         if tempfile['content_type']:
  1155             response.set_content_type(tempfile['content_type'])
  1156         else:

  locals:
     response = <wcs.qommon.http_response.HTTPResponse instance at 0x7fd6e4481098>
     self = <auquotidien.modules.formpage.AlternateFormPage object at 0x7fd6e4476690>
     t = '9c80b1c53641a0d4:nrTO8mdCUsRJeEbl8bUSROOevdU'
     tempfile = None
...
HTTP_USER_AGENT 'Apache OpenOffice/4.1.5'

Je ne veux même pas imaginer ce qui s'est trouvé tapé dans un odt.


Fichiers

Révisions associées

Révision 67d40814 (diff)
Ajouté par Frédéric Péters il y a plus de 5 ans

misc: return 404 on unreachable temporary file (whatever the reason) (#28650)

Historique

#1

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

Retourner None c'est le comportement de get_tempfile quand le fichier n'existe pas, que la signature est mauvaise, etc.

#2

Mis à jour par Emmanuel Cazenave il y a plus de 5 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit 67d40814579a363cce28e9365eac83a6c4eb270b
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Dec 5 17:45:33 2018 +0100

    misc: return 404 on unreachable temporary file (whatever the reason) (#28650)
#4

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

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

Formats disponibles : Atom PDF