https://dev.entrouvert.org/https://dev.entrouvert.org/favicon.ico?15861920342016-10-27T14:40:15ZRedmine Entr’ouvertw.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573332016-10-27T14:40:15ZThomas Noël
<ul></ul><p>Ca crache effectivement quand <br /><pre>
--- a/tests/test_workflows.py
+++ b/tests/test_workflows.py
@@ -1922,7 +1922,8 @@ def test_set_backoffice_field_file(pub):
formdef.workflow_id = wf.id
formdef.store()
- upload = PicklableUpload('test.jpeg', 'image/jpeg')
+ from wcs.qommon.form import PicklableUpload as PicklableUpload2
+ upload = PicklableUpload2('test.jpeg', 'image/jpeg')
upload.receive([open(os.path.join(os.path.dirname(__file__), 'image-with-gps-data.jpeg')).read()])
formdata = formdef.data_class()()
</pre></p> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573392016-10-27T14:59:24ZThomas Noël
<ul><li><strong>Fichier</strong> <a href="/attachments/13792">0001-workflows-check-file-type-with-hasattr-for-backoffic.patch</a> <a class="icon-only icon-download" title="Télécharger" href="/attachments/download/13792/0001-workflows-check-file-type-with-hasattr-for-backoffic.patch">0001-workflows-check-file-type-with-hasattr-for-backoffic.patch</a> ajouté</li><li><strong>Statut</strong> changé de <i>Nouveau</i> à <i>En cours</i></li><li><strong>Assigné à</strong> mis à <i>Thomas Noël</i></li><li><strong>Patch proposed</strong> changé de <i>Non</i> à <i>Oui</i></li></ul><p>Bon, j'ai pas testé "en vrai", cependant.</p> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573412016-10-27T15:12:15ZThomas Noël
<ul></ul><p>Testé sur la recette, et c'était bien le soucis. Relecteurs bienvenus.</p> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573442016-10-27T15:18:18ZFrédéric Pétersfpeters@entrouvert.com
<ul></ul><p>/Same as/Similar to/.</p>
<p>Je virerais le isinstance().</p> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573482016-10-27T15:22:26ZThomas Noël
<ul><li><strong>Fichier</strong> <a href="/attachments/13794">0001-workflows-check-file-type-with-hasattr-for-backoffic.patch</a> <a class="icon-only icon-download" title="Télécharger" href="/attachments/download/13794/0001-workflows-check-file-type-with-hasattr-for-backoffic.patch">0001-workflows-check-file-type-with-hasattr-for-backoffic.patch</a> ajouté</li></ul> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573552016-10-27T15:35:05ZFrédéric Pétersfpeters@entrouvert.com
<ul></ul><p>ok.</p> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=573572016-10-27T15:45:57ZThomas Noël
<ul><li><strong>Statut</strong> changé de <i>En cours</i> à <i>Résolu (à déployer)</i></li></ul><pre>
commit 7e91ff8ee98ac23aad8f91ece3bf9b35cc55ac63
Author: Thomas NOEL <tnoel@entrouvert.com>
Date: Thu Oct 27 16:55:53 2016 +0200
workflows: check file type with hasattr() for backoffice fields (#13777)
PicklableUpload may exist in different namespaces, and then there's also
an independant UploadedFile class; just check if will duck like a file.
Similar to #11000 (commit 2adbdc1720)
</pre> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=594322016-12-04T12:03:47ZFrédéric Pétersfpeters@entrouvert.com
<ul><li><strong>Version cible</strong> mis à <i>v1.63</i></li></ul> w.c.s. - Bug #13777: modification des champs de traitement: crash sur fichier uploadéhttps://dev.entrouvert.org/issues/13777?journal_id=596002016-12-04T12:13:10ZFrédéric Pétersfpeters@entrouvert.com
<ul><li><strong>Statut</strong> changé de <i>Résolu (à déployer)</i> à <i>Fermé</i></li></ul>