Bug #76869
add_tempfile: upload est une string (AttributeError: 'str' object has no attribute 'time')
Début:
21 avril 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/109824/
AttributeError: 'str' object has no attribute 'time' (3 additional frame(s) were not displayed) ... File "quixote/directory.py", line 88, in _q_traverse return obj._q_traverse(path) File "quixote/directory.py", line 92, in _q_traverse return obj() File "wcs/forms/root.py", line 1688, in live return FormStatusPage.live_process_fields(form, formdata, displayed_fields) File "wcs/forms/common.py", line 959, in live_process_fields tempfile = get_session().add_tempfile(value, file_storage) File "wcs/qommon/sessions.py", line 208, in add_tempfile upload.time = time.time()
Demandes liées
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ un an
- Lié à Bug #70077: PicklableUpload renvoyé dans le result de live_process_fields (TypeError: Object of type PicklableUpload is not JSON serializable) ajouté
Mis à jour par Frédéric Péters il y a environ un an
- Assigné à mis à Frédéric Péters
Évidemment tout de suite des gens qui tentent n'importe quoi, j'aurais du m'en douter.
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à En cours
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/257
- Titre : WIP: misc: check prefill value is a file before using it for prefill (#76869)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/257/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/257
- Titre : misc: check prefill value is a file before using it for prefill (#76869)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/257/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
misc: check prefill value is a file before using it for prefill (#76869)