Projet

Général

Profil

Bug #76869

add_tempfile: upload est une string (AttributeError: 'str' object has no attribute 'time')

Ajouté par Sentry Io il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Lié à w.c.s. - Bug #70077: PicklableUpload renvoyé dans le result de live_process_fields (TypeError: Object of type PicklableUpload is not JSON serializable)Fermé11 octobre 2022

Actions

Révisions associées

Révision e7737a16 (diff)
Ajouté par Frédéric Péters il y a environ un an

misc: check prefill value is a file before using it for prefill (#76869)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ un an

  • Projet changé de Suivi des traces à w.c.s.
#2

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é
#3

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.

#4

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 :

#5

Mis à jour par Robot Gitea il y a environ un an

  • Statut changé de En cours à Solution proposée
#6

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 :

#7

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 :

#8

Mis à jour par Transition automatique il y a environ un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#9

Mis à jour par Transition automatique il y a 10 mois

Automatic expiration

Formats disponibles : Atom PDF