Projet

Général

Profil

Bug #74939

testdef, TypeError: expected str, bytes or os.PathLike object, not NoneType

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:
28 février 2023
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

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

TypeError: expected str, bytes or os.PathLike object, not NoneType
(17 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 82, in _q_traverse
    obj = self._q_lookup(component)
  File "wcs/forms/common.py", line 87, in _q_lookup
    return self.serve_file(file, thumbnail=self.thumbnails)
  File "wcs/forms/common.py", line 96, in serve_file
    content = misc.get_thumbnail(file.get_fs_filename(), content_type=file.content_type)
  File "wcs/qommon/misc.py", line 723, in get_thumbnail
    fp = open(filepath, 'rb')  # pylint: disable=consider-using-with

Révisions associées

Révision 596399d0 (diff)
Ajouté par Valentin Deniaud il y a environ un an

qommon: disable thumbnail for image in test data (#74939)

Historique

#1

Mis à jour par Valentin Deniaud il y a environ un an

  • Projet changé de Suivi des traces à w.c.s.
  • Sujet changé de TypeError: expected str, bytes or os.PathLike object, not NoneType à testdef, TypeError: expected str, bytes or os.PathLike object, not NoneType
  • Assigné à mis à Valentin Deniaud
#2

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

  • Statut changé de Nouveau à Solution proposée

Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :

#3

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

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

Thomas NOËL (tnoel) a approuvé une pull request sur Gitea concernant cette demande :

#4

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

  • Statut changé de Solution validée à En cours

Thomas NOËL (tnoel) a relu et demandé des modifications sur une pull request sur Gitea concernant cette demande :

#5

Mis à jour par Valentin Deniaud 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

Frédéric Péters (fpeters) 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)

Valentin Deniaud (vdeniaud) 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 environ un an

Automatic expiration

Formats disponibles : Atom PDF