New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 689728 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

isolate server should set content-disposition and filename for download...

Project Member Reported by tansell@chromium.org, Feb 7 2017

Issue description

Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)

What steps will reproduce the problem?
(1) Go to https://isolateserver.appspot.com/content?namespace=default-gzip&digest=2ae23beb47393eccf58a63db5eac8edbeef05a7d
(2) Click link of file.

What is the expected result?

File should be downloaded with the expected name (from the isolate file).


What happens instead?

Get a file downloaded with <random hash> (like 2ae23beb47393eccf58a63db5eac8edbeef05a7d)

 
What do you mean by expected name? The isolate server is a content-addressed cache, there's no symbolic name at that level.
This can be done by setting the HTTP response header "Content-Disposition".
http://stackoverflow.com/questions/13307499/http-download-file-name


Ahhh you mean when browsing an isolated file with the web UI, create links that specify the isolated supplied basename. I'm fine with that.
Yeah, if you browse to the file via hash, then it has no idea of the file name. Put if you click on a link from a isolated file, then it could easily send the filename through.

Actually an alternative solution to "Content-Disposition" which might even be more reliable would be to allow urls of the type;

https://isolateserver.appspot.com/content/<filename>?namespace=default-gzip&digest=2ae23beb47393eccf58a63db5eac8edbeef05a7d

The '/<filename>' part of the URL is then totally ignored/stripped off internally.
BTW This is a really low priority item, just noticed the problem when showing Jeff some stuff today and wanted to make sure we had the thought tracked somewhere.
Status: Available (was: Untriaged)

Comment 7 by jonesmi@google.com, Feb 14 2017

CL out for review: https://codereview.chromium.org/2693953006/
Cc: jonesmi@google.com
Owner: jonesmi@google.com
Status: Started (was: Available)
I think this CL is fixed? 

jonesmi@google.com can you confirm?
Status: Verified (was: Started)
Yes

Sign in to add a comment