-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[download with android] too many redirects #342
Comments
Please report in https://github.com/nextcloud/android |
Why in Android, it's an Server Problem... I don't use the Android app from nextcloud for this. |
Ah okay, sorry then I didnt read correctly |
I could download this file and open the apk with the Android package manager without problems. The browser I used is "Gello", the new stock browser delivered in Cyanogenmod and based on Chromium. |
With Gello it works. Strange |
Same Problem here ... |
anyone an idea? |
No idea... |
I just tried here on my CM (android 6) in chrome and gello. Both work for me... Would any of you be able to log the requests? (Don't know if there are debug tools like that for mobile?) |
i use adb shell logcat /mnt/sdcard/log.txt for that. |
I think this is a problem of chrome mobile... |
I also think that it is an issue specific to Chrome(ium) on Android. In contrast to that Chromium on the (Linux) desktop works fine… |
i found one error in Chrome with remote debugging.
What is wrong? |
@Happyfeet01 you can't download only shared files? I can't download everything. |
Some new news about this "feature" out there? |
@Echse27 Allegedly it is a bug of Google Chrome. But in 52 there is no any changes. As workaround you can use Firefox or just official Nextcloud app. |
@Lord-Protector: That does not really help with other people who are not in your cloud... |
@ToeiRei workaround is only partly solution of problem. Other people can just use other browser if you explain them about this bug. |
@LukasReschke and I debugged this a bit - the first commit where this happens is 2c6a5fc (add same site cookie). We proxied the connection and the file is downloaded twice (before this was both times a 200, afterwards first a 200 and then a 302). This looks like the first request is done by Chrome and the other one by the Download app on Android. The second request doesn't hold the "same site" cookie and causes a 302. |
And yay! This is a feature of Android! Because why use HEAD if you can just download files twice! 🚀 |
And this is also the case for 150 MB files ... it simply downloads them twice 😵 |
And even more yay! Android is really insane when it is about cookies. So what happens is:
🙈 🙉 🙊 |
Android is really insane when it is about cookies. So what happens is: 1. Nextcloud sets cookies with a Same-Site attribute 2. Chrome Android accepts it and sends it properly 3. The first download using Chrome works 4. It is redownloaded with the Download Manager which does just completely drops cookies with the same-site attribute This makes downloads fails on mobile Chrome. Fixes #342
Please test #1454 |
Android is really insane when it is about cookies. So what happens is: 1. Nextcloud sets cookies with a Same-Site attribute 2. Chrome Android accepts it and sends it properly 3. The first download using Chrome works 4. It is redownloaded with the Download Manager which does just completely drops cookies with the same-site attribute This makes downloads fails on mobile Chrome. Fixes #342
This works for me 🙌 |
when i try to download any file from an Link i got an error. only from mobile devices it won´t work. from Desktop it works fine.
Steps to reproduce
Actual behaviour
Downloaded file is corrupt. Download stops with "Filexyz konnte aufgrund von Serverproblemen nicht heruntergeladen werden"
Server configuration
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: (see Nextcloud admin page)
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status (Nextcloud 9.0 and above):
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
Android latest Chrome Browser, Stock Android Browser
Operating system:
Windows 10, Android 6.0.1
Logs
Web server error log
Web server error log
But i think nothing to do with this problem (different time)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: