New issue
Advanced search Search tips

Issue 607089 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Chrome cache mechanism is incorrect.

Reported by ashleyte...@gmail.com, Apr 27 2016

Issue description

Steps to reproduce the problem:
1. Clean environment and launch Chrome to login http://m.1mobile.tw/com-qianxun-phone-2032303.html
2. Press 安卓Phone下載Button, 1st download will handle by Download Manager (Correct MIME type)
3. Press安卓Phone下載Button to download again , this time was handle by Chrome(Incorrect MIME type)
4. Repeat step3 again and again. (Incorrect MIME type)
5. Until we clear Chrome Cache
6. Run step 2, this time was handle by Download Manager (Correct MIME type)

What is the expected behavior?
Chrome cache mechanism is correct.

What went wrong?
After installing APK by chrome, the MIME of the apk is incorrect.

WebStore page: 

Did this work before? N/A 

Chrome version: 50.0.2661.89  Channel: stable
OS Version: 6.0.1
Flash Version:
 
Components: -Platform>Apps UI>Browser>Downloads
Labels: Needs-Feedback
Thanks for the bug report. Can you attach a net-internals log to help us debug this? Please see https://sites.google.com/a/chromium.org/dev/for-testers/providing-network-details for instructions on providing a net-internals log.
Hi, please help to check.
Thanks.

Timestamp: 2016/5/2 10:00
chrome-net-export-log.json
3.2 MB View Download
Project Member

Comment 3 by sheriffbot@chromium.org, May 2 2016

Labels: -Needs-Feedback Needs-Review
Owner: jkarlin@chromium.org
Thank you for providing more feedback. Adding requester "jkarlin@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: asanka@chromium.org
Owner: ----
Cc: qin...@chromium.org
Labels: -Needs-Review Needs-Feedback
Can you explain what you mean by "Incorrect MIME type"? Looks like the file got the correct filename.
Hi, for example:

I download an apk file, when I click it, it should let me install the app via package installer, but it didn't, it opened via SMS or others, so I can't install the app. 
MIME type = Internet media type
Project Member

Comment 9 by sheriffbot@chromium.org, May 5 2016

Labels: -Needs-Feedback Needs-Review
Owner: asanka@chromium.org
Thank you for providing more feedback. Adding requester "asanka@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -qin...@chromium.org
Owner: qin...@chromium.org
qinmin: Do we have to do anything else to get .apks to open correctly?
Labels: Needs-Feedback
I don't know how to reproduce the issue. I clicked the download button on http://m.1mobile.tw/com-qianxun-phone-2032303.html, and the download goes to DownloadManager.
And I clicked download button again, the download still handled by Android DownloadManager. 

I tried clicking the button several times, but I cannot get the download to go through chrome's network stack.

We use mimetype to query the PackageManager for the best app to handle a particular downloaded file. So as long as the mime type is correct, it should bring up the package installer.

Hi,

As attached picture, you could see the apk which I 1st download has the correct MIME. 
But after re-downloading, 2nd and 3rd apk MIME are incorrect.
Screenshot_20160506-142759.png
111 KB View Download
How can I reproduce the issue?
When I follow your steps in #1, but I am seeing that Android DOwnloadManager download the apk file when I press the download button. And I am able to open the apk file after download. 




Project Member

Comment 14 by sheriffbot@chromium.org, May 6 2016

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
And when I download the apk from http://m.1mobile.tw/com-qianxun-phone-2032303.html, i saw the url is http://package.1mobile.com/download/.....
But in your screenshot in #12, the 3rd apk is downloaded from http://jp.download....
Any idea why?
Could you please help to try on this url: http://m.1kxun.mobi/offical/mobile/download
I can always reproduce on it, thank you !
Status: Assigned (was: Unconfirmed)
Labels: -Needs-Review
Cleaning up "Needs-Review" label as we are not using this label for triage anymore. Ref bug for this cleanup 684919

Sign in to add a comment