Projet

Général

Profil

Bug #63221

ressource site, ValueError: embedded null byte

Ajouté par Sentry Io il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
26 mars 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/54894/

ValueError: embedded null byte
(5 additional frame(s) were not displayed)
...
  File "django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "django/views/generic/edit.py", line 142, in post
    return self.form_valid(form)
  File "combo/apps/assets/views.py", line 208, in form_valid
    default_storage.delete(img_orig)
  File "django/core/files/storage.py", line 307, in delete
    if os.path.isdir(name):
  File "genericpath.py", line 42, in isdir
    st = os.stat(s)

(audit qui est allé mettre n'importe quoi)


Fichiers

Révisions associées

Révision 17742635 (diff)
Ajouté par Lauréline Guérin il y a environ 2 ans

assets: fix delete and overwrite with bad filename (#63221)

Historique

#1

Mis à jour par Frédéric Péters il y a environ 2 ans

  • Projet changé de Suivi des traces à Combo
#2

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Assigné à mis à Lauréline Guérin
#3

Mis à jour par Lauréline Guérin il y a environ 2 ans

#4

Mis à jour par Thomas Noël il y a environ 2 ans

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

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 17742635e595e9de899087bf73c6a27209dc6a74
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Mar 29 10:12:51 2022 +0200

    assets: fix delete and overwrite with bad filename (#63221)
#6

Mis à jour par Transition automatique il y a environ 2 ans

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

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

Formats disponibles : Atom PDF