Bug #64837
Crash sur soumission d'un champ fichie , magic
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
Historique
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é.
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.
Mis à jour par Emmanuel Cazenave il y a presque 2 ans
- Fichier 0001-misc-use-python-magic-instead-of-file-magic-64837.patch 0001-misc-use-python-magic-instead-of-file-magic-64837.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a presque 2 ans
- Statut changé de Solution proposée à Solution validée
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)
Mis à jour par Transition automatique il y a presque 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: use python-magic instead of file-magic (#64837)