New issue
Advanced search Search tips

Issue 628859 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

unable to download from Nextcloud

Reported by larsmuel...@gmail.com, Jul 16 2016

Issue description

Example URL:
https://cloud-surfer.eu/s/6XKvVD5NITHSked

Steps to reproduce the problem:
1. Open the link
2. start the download

What is the expected behavior?
Download stops and this is the Log from Chrome access with remote debugging:

Resource interpreted as Document but transferred with MIME type application/vnd.android.package-archive: "https://cloud-surfer.eu/s/6XKvVD5NITHSked/download".
Resource interpreted as Document but transferred with MIME type application/vnd.android.package-archive: "https://cloud-surfer.eu/s/6XKvVD5NITHSked/download".

What went wrong?
I would download the content but after few seconds the download stops. No error at the cloud administration and at server logs. 
When i try to download with other Browsers or Chrome on Desktop the download works fine. 

Did this work before? Yes 

Chrome version: 51.0.2704.90  Channel: stable
OS Version: 7
Flash Version: Shockwave Flash 22.0 r0
 
Components: -Internals>Network UI>Browser>Downloads
Status: Untriaged (was: Unconfirmed)
Reproduced on 53.0.2754.0, and unable to reproduce on 49.0.2623.105. Attached is a NetLog dump. Looks like the url request is canceled. Attaching Downloads label.
chrome-net-log.json
40.7 KB View Download
Labels: -Type-Bug Needs-Bisect Type-Bug-Regression
Cc: krav...@chromium.org
Labels: triage-te
would it be solved in next release? or need you more information?
i must generate an new download link: https://cloud-surfer.eu/s/9HGJAE4b90dLG4s to test if the Chrome Browser can download the file. 
With the latest Chrome Dev for Android @xunji...@chromium.org

Comment 7 by kravula@google.com, Aug 18 2016

Cc: -krav...@chromium.org qin...@chromium.org
Labels: -triage-te -Needs-Bisect
Download link is not working getting 404 error. Could you please provide the correct link to repro the issue
the Link works already https://cloud-surfer.eu/s/9HGJAE4b90dLG4s

Comment 9 by keit...@gmail.com, Sep 10 2016

I also see this issue with current stable, beta, and the current even dev (54.0.2840.16) on my Nexus 6P running Android 6.0.1 using my own server instance; came to my attention because I tried to share a link to a friend (who's running 6.0.1 as well, albeit on a Nexus 5, and only tried Chrome 52.0.2743.98 Stable).

I can provide additional logs and/or test links (my personal server isn't something I'd necessarily publicly advertise but I can easily set up a test one) if necessary.
Status: Fixed (was: Untriaged)
The link in #8 works for me on M54.

if you are using M52-M54, go to chrome://flags and make sure "use system DownloadManager" is disabled.  If not, disable it and relaunch Chrome.

Comment 11 by keit...@gmail.com, Sep 14 2016

Err, if is really "fixed" if anyone we share a link to from a Nextcloud instance we have to provide workaround instructions to as well in case they try to use Chrome for Android? Unless you're saying that using the system download manager will be disabled by default in version 54?
Yes, M54 by default will disable system downloadmanager
This is caused because the system download manager is not sending cookies with the Same-Site attribute. Nextcloud does require the "lax" cookie to be sent on all requests. See https://github.com/nextcloud/server/pull/1454 for more information.

So the first request with Chrome does include "nc_sameSiteCookielax", the follow-up download from download manager does not.

In my opinion this is a bug in the system download manager.

Sign in to add a comment