Closed Bug 1580520 Opened 6 years ago Closed 6 years ago

Downloading files from walla.co.il results in the downloaded file's name being truncated after the first space

Categories

(Toolkit :: Downloads API, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1440677

People

(Reporter: itiel_yn8, Unassigned)

Details

Latest Nightly, Windows 10.

STR:

  1. Log in to a Walla mail account
  2. Download a file with spaces in its name (this reproduces with Hebrew characters, not sure if this applies to all characters)

AR:
The file name is truncated after the first space.

ER:
The downloaded file's name should be the same as in the server.

Note: This works in Chrome.
If this is a regression, it seems it's an old one- the website doesn't work in Nightly from 2015 so I can't know when it started.

Uploading the same file to a file upload server and downloading it from there makes the file save with its entire name.
I can provide a test user account for walla.co.il to reproduce, if needed, via mail.

Bug 1334274 is very similar to what's happening here, but on a different site.

Because we can't access that server, it would be nice if you could capture a network log when you download the file, to understand exactly what the browser and the server are exchanging. In particular the headers for the request and response. I think you could try with the devtools network pane first.
Otherwise, if you could find a public file that we can access with the same problem, it would help a lot.

Flags: needinfo?(itiel_yn8)

(In reply to Marco Bonardo [::mak] from comment #3)

Because we can't access that server, it would be nice if you could capture a network log when you download the file, to understand exactly what the browser and the server are exchanging. In particular the headers for the request and response. I think you could try with the devtools network pane first.
Otherwise, if you could find a public file that we can access with the same problem, it would help a lot.

Sure:

Request method: GET
Status code: 200 OK
Version: HTTP/1.1
Referrer Policy: no-referrer-when-downgrade
Response headers:

HTTP/1.1 200 OK
Date: Wed, 18 Sep 2019 13:28:33 GMT
Content-Type: application/pdf
Transfer-Encoding: chunked
Connection: keep-alive
Server: nginx/1.17.1
X-Powered-By: PHP/7.1.30
Content-disposition: attachment; filename= אישור מחלה 29.7.19.pdf

(the gibberish text is hebrew characters)

Request headers:

Host: api-mail.walla.co.il
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: he,he-IL;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://mail.walla.co.il/
Cookie: textsize=NaN; tp_state=true; webpush_disabled=true; _ga=GA1.3.2000885513.1568813206; _gid=GA1.3.440240295.1568813206; _fbp=fb.2.1568813209173.1434739066; scr=PVef3NoM6r9X03DDsRt2S60S3BywBFHtGGE8vYgaSiMDDKJ4X9cCnvZmNNrNVnizqVBCPPRMkizKaGu4edweRrIx5IZqL2RlxCBiw9pPgNFIV3XyDGTKI1YwlZdaPiGculAhUJfJqBnliDAKSw67rtoBKTyZ054tQAlL7YOF2B7crC7zFS0xo3X3GndDqTvEBteLIqSQdaQPVdB20W0BlhyDA8b7eLT4WoL9Qq6jzI842USYfXVZDzKsqrxg5qSO; unq=8759419; login=1; age=24; gender=1; cur=8759419; mua=totK5q9Qgw%2F3El3sV6GbmHQrUXEe0xYbp7IMrMMF0%2BUfH02q09%2F9gsZBYPlkAnKu%2BncFGVpbirqCBUVtquCL3v6LPTYMlSSlrjhBJguvr7%2Frq%2FQysYSU8rEG0rVvwk2vIffDMj1YQkBHmkb9CbVYkqvzsLozy5ZbIjHY7f7OpGuZO%2BnrczicsSUbyW9aOt6%2BEeTvtcdK6mDikUgk8Fi0C4Nq7Hfiif%2Fu7WVyEt1kDpDfehv8tMj1VdY3aHLJ0zZdR%2Bux2l1D6IIAvZW5FIMAPWLnGf77JXmzJU9x%2FNoWpeZpy0CjVbZVfE8NuO%2Fg8g2KYW3RMqf91c8T6Qq%2FWZtFoiISFEwQtBOPNxIpxRAPbZRD0j0f66bBzDAz2IwbMkl2LAp9hvZ4Jw%2FlzRHv4%2FNdXszyIfW2%2FiATPVwZyQI5Dna340AEM4wEUWQt2oNvCQSeRQFNjdnQUqma9Jw%2FS8Tkow%3D%3D
Upgrade-Insecure-Requests: 1

Full file name: "אישור מחלה 29.7.19.pdf"
Truncated file name: "אישור" (yes, without the file extension)

Flags: needinfo?(itiel_yn8) → needinfo?(mak77)

Thanks for the headers, they make it obvious what the problem is. This is a known issue; the website should escape the spaces in the filename they give in the content-disposition header.

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(mak77)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.