Upload failing due to connection error on version 3.8.0
Actual behaviour
- Uploads are failing on the latest version of the app (3.8.0);
- The app is reporting a "Connection error".
Expected behaviour
- Uploads should complete without errors, as was the case on prior versions.
Steps to reproduce
- Just try to upload a file.
Environment data
Android version: 9;
Device model: Motorola G6 Play;
Stock or customized system: stock;
Nextcloud app version: 3.8.0;
Nextcloud server version: 16 (with Cloudflare SSL certificate and using a custom port).
Same problem here with auto-sync feature. Some files are sent without problems and others fails with "Connection error". Manual uploads works as expected.
Nextcloud android app 3.8.0 on Android 9; Pocophone F1. Nextcloud server app 16.04 with Cloudflare SSL.
Its not only the auto-sync function. If you upload file manually with WiFi, it doesn't work. It works only if I turn off the WiFi and use Cellar network.
Nextcloud android app 3.8.0. Oneplus 6 Nextcloud server app 15.0.11
I've having the same issue as of today. I even tried to upgrade the Nextcloud server to 16.0.4 today. I can't upload any files from my Google Pixel C Tablet or my Google Pixel Phone.
Nextcloud android app version 3.8.0 Google Pixel & Google Pixel C Tablet Nextcloud server app 16.0.4
Please fix.
Ty
Pinging @tobiasKaminsky while my guess is (due to wifi versus cellular) that this is rather a server config issue (not handling http chunking correctly).
I don't think it is a server side issue. It has started after updating the Android app and devices on the previous version were still able to upload correctly.
My comment was rather about @bubonic and @bbbf0621. Afaik there haven't been any changes to auto upload (except for general TLS 1.3 support), which is why I pinged @tobiasKaminsky for further commenting.
Same problem here, not one upload worked with v3.8.
I see the same issue. Uploads work after first installing the app. After closing and reopening the app, uploads fail unless using cellular service. Reverting to 3.7.2 fixes the problem, so seems to be introduced in 3.8.0. I've seen this on both a Samsung S10 and kindle fire (fire does not have cell service so no uploads are possible until downgrading to 3.7.2). Other oddities are that I can still change folder names, add or remove folders and even delete files, but I can not upload new files.
Other oddities are that I can still change folder names, add or remove folders and even delete files, but I can not upload new files.
Same issue here.
How is it possible to revert the app to version 3.7.2?
I downloaded the 3.7.2 apk from f-droid. Previous versions are listed at the bottom of the app description page. Fair warning, I had to uninstall next cloud and reinstall it using the apk, which lost all of my synched files and settings.
Confirming that uploads are no longer working with v3.8 on naked android 9 and 10.
Switched back to 3.7.2 and worked flawlessly.
Wifi Upload only works after fresh install through with ver 3.8. Shows connection error after reopen the nectcloud app to both auto upload and manual upload. Mobile data uploads without problems.
I have the same issue. I had no issues prior to updating the app to 3.8
Uploading files on the same device using the website instead of the app works. Auto upload and regular upload fails in the app with "Connection error"
Same problem for me.
Connection error if I switch the WIFI on (it only works with cellular data).
My configuration:
- Xiaomi MI8
- MIUI 10.3
- Android 9
- Nexcloud Server version: 17.0.0
- Nexcloud App version: 3.8.0
When do you think it'll be fixed?
Any idea how long a fix might take? The app is not usable for many ppl as it now.
Can you create us a test account, test if the problem occurs also there and if so send the credentials to tobias at nextcloud dot com with a reference to this issue?
I just ran a sniffer to check what exactly is happening. It seems that it's Cloudflare that's blocking the traffic because of failed browser integrity check.
Browser Integrity Check Cloudflare might be blocking the user agent (Jakarta Commons-HttpClient/3.1), however it is weird that it allows connection on a cellular connection. Other operations does not cause this firewall action because(?) of a different user agent (Mozilla/5.0 (Android) Nextcloud-android/3.8.0)
Was that changed somehow recently?
For now, you can work around this by disabling browser integrity check in your firewall settings in Cloudflare.
Thank you, @disaderp ! I have cloudflare in front of my nextcloud instance and disabling that Browser Integrity Check has allowed my v3.8.0 Android app to sync my files. Good find.
That fixed it for me too. Not sure why the newer app fails, but the older one passes...
I believe that this PR already fixes this issue: #4528 EDIT: I can confirm, the apk from this PR works flawlessly even with Browser Integrity Checks enabled