Project

General

Profile

Bug #53752

build cassé, test test_push_document_slashed_name

Added by Frédéric Péters 13 days ago. Updated 11 days ago.

Status:
Résolu (à déployer)
Priority:
Normal
Target version:
-
Start date:
04 May 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

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.


Files

History

#1

Updated by Emmanuel Cazenave 11 days ago

  • Assignee set to Emmanuel Cazenave
#2

Updated by Emmanuel Cazenave 11 days ago

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.

#3

Updated by Benjamin Dauvergne 11 days ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Emmanuel Cazenave 11 days ago

  • Status changed from Solution validée to 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).

Also available in: Atom PDF