[Django] #29368: File upload through Safari browser

18 views
Skip to first unread message

Django

unread,
Apr 27, 2018, 3:02:07 PM4/27/18
to django-...@googlegroups.com
#29368: File upload through Safari browser
---------------------------------------------+------------------------
Reporter: Anton A. Lysenkov | Owner: nobody
Type: Bug | Status: new
Component: HTTP handling | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
Request to development web server freezes when I tried post form data with
file (file field empty). It seems like it getting stuck on HttpRequest
read method. No Exceptions, no response, just silent.

Example project here:
https://github.com/magnitronus/safari_form_bug
Curl looks like this:

{{{
curl 'http://127.0.0.1:8000/dummy/' \
-XPOST \
-H 'Content-Type: multipart/form-data;
boundary=----WebKitFormBoundaryksp4b8z8EZ7zfWVY' \
-H 'Origin: http://127.0.0.1:8000' \
-H 'Accept: */*' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4)
AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15' \
-H 'Referer: http://127.0.0.1:8000/dummy/' \
-H 'x-csrftoken:
ILKS0gtEuDFXXqpnxLZXGbqBOyNr8utDrRF9t550QliVxrLsB4P42R6dwVQQVMWZ' \
--data-binary $'------WebKitFormBoundaryksp4b8z8EZ7zfWVY\r\nContent-
Disposition: form-data;
name="csrfmiddlewaretoken"\r\n\r\nILKS0gtEuDFXXqpnxLZXGbqBOyNr8utDrRF9t550QliVxrLsB4P42R6dwVQQVMWZ\r\n
------WebKitFormBoundaryksp4b8z8EZ7zfWVY\r\nContent-Disposition: form-
data; name="name"\r\n\r\nadd\r\n------WebKitFormBoundaryksp4b8z8EZ7zfWVY\r
\nContent-Disposition: form-data; name="some_file"; filename=""\r
\nContent-Type: application/octet-stream\r\n\r\n\r\n------
WebKitFormBoundaryksp4b8z8EZ7zfWVY--\r\n'
}}}

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

Django

unread,
Apr 27, 2018, 3:13:55 PM4/27/18
to django-...@googlegroups.com
#29368: File upload through Safari browser
-----------------------------------+--------------------------------------

Reporter: Anton A. Lysenkov | Owner: nobody
Type: Bug | Status: new
Component: HTTP handling | Version: 2.0
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Description changed by Anton A. Lysenkov:

Old description:

New description:

Upd: curl works fine. Maybe it is safari bug :(

--

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

Django

unread,
Apr 27, 2018, 5:04:18 PM4/27/18
to django-...@googlegroups.com
#29368: File upload through Safari browser
-----------------------------------+--------------------------------------

Reporter: Anton A. Lysenkov | Owner: nobody
Type: Bug | Status: closed

Component: HTTP handling | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Comment:

I don't have Safari, but can't reproduce with Firefox or Chrome on Linux.
If you find that Django is at fault, please reopen with details.

--
Ticket URL: <https://code.djangoproject.com/ticket/29368#comment:2>

Reply all
Reply to author
Forward
0 new messages