download attribute ignores 404 and creates file with the 404 response
Reported by
ml...@nocturnal.org,
Oct 26 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36 Example URL: Steps to reproduce the problem: 1. create an anchor tag with a download attribute that points to a missing file. 2. click the link What is the expected behavior? Like other non-chrome browsers it should simply give them an error saying the file is missing. What went wrong? Chrome creates a file that contains the 404 response text from the web server. Did this work before? No Chrome version: 62.0.3202.62 Channel: stable OS Version: 16.04 Flash Version: Shockwave Flash 27.0 r0 Might be incorrect category.
,
Oct 26 2017
mlenz@, Thank you for the report. Can you please attach a sample repro case?
,
Oct 26 2017
,
Oct 26 2017
Actually maybe it's just a perception issue or maybe this is the new behavior. That it appears to download with a true 404 and that issue I was seeing was a response from google cloud storage being placed into the file previously. Maybe there really isn't anything to fix here. hrrm.
,
Oct 26 2017
,
Oct 26 2017
Thanks for the report, can't repro on trunk, will get a 62 version to test with. We recently add an optional behavior to download 404 into a file, but it's not in 62.
,
Oct 26 2017
Screenshots on development build. To mlenz@, can you please provide a screenshot of the similar icon or the 404 file?
,
Oct 26 2017
,
Oct 26 2017
I think you can close this honestly. I originally encountered this problem (the saving of the file with the 404 response) in a much older version of chrome and because of the way it still appears to still download a file (but doesn't actually) I assumed it was still an issue. I can't reproduce this anymore. Sorry for the time waste.
,
Oct 27 2017
Thank you for filing this bug, your feedback is always welcomed. Marked this as Won't fix for now. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by mmenke@chromium.org
, Oct 26 2017