Bug #53752
build cassé, test test_push_document_slashed_name
Début:
04 mai 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
=================================== FAILURES =================================== _______________________ test_push_document_slashed_name ________________________ app = <django_webtest.DjangoTestApp object at 0x7fcebbacf908> admin_user = <User: admin>, john_doe = <User: john.doe> def test_push_document_slashed_name(app, admin_user, john_doe): login(app) url = '/api/documents/push/' data = { 'user_email': john_doe.email, 'origin': 'wcs', 'file_b64_content': base64.b64encode(b'whatever').decode(), 'file_name': 'monfichier 18/06/2017.pdf', } > response = app.post_json(url, params=data, status=200)
Uniquement côté django 2.2, et vu l'échec combo du jour et le nom du test ça serait suite à la nouvelle version django.
Fichiers
Historique
Mis à jour par Emmanuel Cazenave il y a presque 3 ans
- Fichier 0001-api-replace-with-in-file-name-53720.patch 0001-api-replace-with-in-file-name-53720.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Je propose de remplacer les slash par des tirets puisque django veut plus de slash dans les noms de fichiers.
Le ticket qui a introduit ce test : #12793.
Mis à jour par Benjamin Dauvergne il y a presque 3 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Emmanuel Cazenave il y a presque 3 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 8763de4c97ab139626843f8adb81c1898f6dce3f Author: Emmanuel Cazenave <ecazenave@entrouvert.com> Date: Thu May 6 11:52:12 2021 +0200 api: replace '/' with '-' in file name (#53720) Compatibility with https://docs.djangoproject.com/en/3.2/releases/2.2.21/ (CVE).