[Django] #34522: PUT/PATCH data is not encoded for multipart/form-data in Django Test

4 views
Skip to first unread message

Django

unread,
Apr 27, 2023, 6:57:00 AM4/27/23
to django-...@googlegroups.com
#34522: PUT/PATCH data is not encoded for multipart/form-data in Django Test
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
MatejMijoski |
Type: Bug | Status: new
Component: Testing | Version: 4.2
framework | Keywords: multipart form
Severity: Normal | data, tests, put data encoding
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I've noticed that the mulipart/form-data is only encoded in the POST
request of the Django test client and not in the PUT/PATCH requests. Is
this intentional and if so, why?

--
Ticket URL: <https://code.djangoproject.com/ticket/34522>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 27, 2023, 6:58:54 AM4/27/23
to django-...@googlegroups.com
#34522: PUT/PATCH data is not encoded for multipart/form-data in Django Test
-------------------------------------+-------------------------------------
Reporter: MatejMijoski | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 4.2
Severity: Normal | Resolution:
Keywords: multipart form | Triage Stage:
data, tests, put data encoding | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by MatejMijoski:

Old description:

> I've noticed that the mulipart/form-data is only encoded in the POST
> request of the Django test client and not in the PUT/PATCH requests. Is
> this intentional and if so, why?

New description:

I've noticed that when making a request using the Django test client with
a multipart/form-data content type, the data only gets encoded for POST
requests. Is intentional and if so, why?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34522#comment:1>

Reply all
Reply to author
Forward
0 new messages