Projet

Général

Profil

Bug #64837

Crash sur soumission d'un champ fichie , magic

Ajouté par Emmanuel Cazenave il y a presque 2 ans. Mis à jour il y a presque 2 ans.

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

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<class 'TypeError'>', value = '__init__() got an unexpected keyword argument 'mime''

Stack trace (most recent call first):
  File "/home/cazino/src/eo/wcs/wcs/qommon/form.py", line 917, in _parse
   915         # various reasons.
   916         if magic and self.value.fp:
>  917             mime = magic.Magic(mime=True)
   918             filetype = mime.from_file(self.value.fp.name)
   919         else:

Fichiers

Révisions associées

Révision eaab3f8f (diff)
Ajouté par Emmanuel Cazenave il y a presque 2 ans

misc: use python-magic instead of file-magic (#64837)

Historique

#1

Mis à jour par Emmanuel Cazenave il y a presque 2 ans

Coté devinst on utilise https://pypi.org/project/file-magic/ qui vient de fargo.

Et dans wcs récemment il y a eu https://dev.entrouvert.org/attachments/64293, et crash.

Plutot utiliser https://pypi.org/project/python-magic/ sur lequel python3-magic est basé.

#2

Mis à jour par Emmanuel Cazenave il y a presque 2 ans

  • Projet changé de Publik Installation Développeur à Fargo

Plutôt à gérer dans fargo du coup.

#3

Mis à jour par Emmanuel Cazenave il y a presque 2 ans

#4

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

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

Mis à jour par Emmanuel Cazenave il y a presque 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit eaab3f8f58adf0e9b6c09d8a2ad9c95ba6b01e99
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Wed May 4 11:27:35 2022 +0200

    misc: use python-magic instead of file-magic (#64837)
#6

Mis à jour par Transition automatique il y a presque 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