Projet

Général

Profil

Bug #53842

fichiers attachés dans l'API vs backend chiffrement

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:
07 mai 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'FileNotFoundError'>', value = '[Errno 2] No such file or directory: 'uuid-4929cff0-832d-4ade-bd44-f8c6d4e33ab6''

Stack trace (most recent call first):

  File "/usr/lib/python3/dist-packages/wcs/workflows.py", line 282, in get_json_export_dict
   280             'filename': self.base_filename,
   281         }
>  282         with open(self.filename, 'rb') as fd:
   283             d['content'] = base64.encodebytes(fd.read())
   284         return d

  locals: 
     anonymise = False
     d = {'type': 'workflow-attachment', 'content_type': 'application/pdf', 'filename': 'pj 1 - Copie _2_.pdf'}
     include_files = True
     self = <wcs.workflows.AttachmentEvolutionPart object at 0x7f4372f02780>

  File "/usr/lib/python3/dist-packages/wcs/formdata.py", line 183, in get_json_export_dict
   181         for part in self.parts or []:
   182             if hasattr(part, 'get_json_export_dict'):
>  183                 d = part.get_json_export_dict(anonymise=anonymise, include_files=include_files)
   184                 if d:
   185                     parts.append(d)

Fichiers

Révisions associées

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

workflows: don't return attachment contents for remote opaque files (#53842)

Historique

#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 Frédéric Péters il y a presque 3 ans

#4

Mis à jour par Thomas Noël il y a presque 3 ans

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

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 abf0463348f9edd5bb7a040954caceb41f9b0b8f
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri May 7 10:46:19 2021 +0200

    workflows: don't return attachment contents for remote opaque files (#53842)

#6

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