Projet

Général

Profil

Bug #1167

Bug sur r2205

Ajouté par Thomas Noël il y a plus de 12 ans. Mis à jour il y a presque 6 ans.

Statut:
Rejeté
Priorité:
Haut
Assigné à:
Version cible:
-
Début:
22 décembre 2011
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Planning:

Description

Le patch r2205 n'est pas bon :

Stack trace (most recent call first):
  File "/usr/lib/pymodules/python2.5/wcs/workflows.py", line 850, in model_file_validation
   848             if upload.base_filename and upload.base_filename.endswith('.rtf'):
   849                 return True, ''
>  850         if upload.get_file().read(10).startswith('{\\rtf'):
   851             return True, ''
   852         return False, _('Only RTF files can be used')

  locals:
     self = <wcs.workflows.ExportToModel instance at 0x33e7518>
     upload = <Upload at 32f4128: modele.RTF>

Historique

#1

Mis à jour par Thomas Noël il y a plus de 12 ans

Je crois que c'est juste upload.read(10).startswith qu'il faut faire... A tester.

#2

Mis à jour par Thomas Noël il y a plus de 12 ans

Corrigé (à la main) sur @auquo

#3

Mis à jour par Thomas Noël il y a plus de 12 ans

  • Statut changé de Nouveau à Fermé
#4

Mis à jour par Thomas Noël il y a plus de 12 ans

  • Statut changé de Fermé à 7
#5

Mis à jour par Benjamin Dauvergne il y a presque 6 ans

  • Statut changé de 7 à Rejeté

Formats disponibles : Atom PDF