Project

General

Profile

Bug #28650

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

Added by Frédéric Péters 6 months ago. Updated 5 months ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Start date:
05 Dec 2018
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

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.

0001-misc-return-404-on-unreachable-temporary-file-whatev.patch View (896 Bytes) Frédéric Péters, 05 Dec 2018 05:46 PM

Associated revisions

Revision 67d40814 (diff)
Added by Frédéric Péters 6 months ago

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

History

#1 Updated by Frédéric Péters 6 months ago

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

#2 Updated by Emmanuel Cazenave 6 months ago

  • Status changed from Solution proposée to Solution validée

#3 Updated by Frédéric Péters 6 months ago

  • Status changed from Solution validée to 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 Updated by Frédéric Péters 5 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF