nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.17k stars 1.75k forks source link

Android client after url change: Server not available #13454

Open pascalBokBok opened 3 weeks ago

pascalBokBok commented 3 weeks ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. move your Nextcloud server folder from domain.com/old-dir to domain.com/new-dir
  2. create a 301 permanent redirect from the old folder to the new folder.

Expected behaviour

The mobile sync client should transition to the new path and keep working. Like the desktop client does.

Actual behaviour

When opening the mobile nextcloud client, it shows the cached folders and a "server not available" warning. When entering one of the folders it shows loading and the warning about server unavailable.

- - [21/Aug/2024:08:43:37 +0000] "GET /owncloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 301 4473
 - pascal [21/Aug/2024:08:43:37 +0000] "GET /nextcloud/ocs/v2.php/cloud/user?format=json HTTP/1.1" 200 2384
 - - [21/Aug/2024:08:43:37 +0000] "PROPFIND /owncloud/remote.php/dav/files/pascal/Dilbert/ HTTP/1.1" 301 4408
 - pascal [21/Aug/2024:08:43:37 +0000] "PROPFIND /nextcloud/remote.php/dav/files/pascal/Dilbert/ HTTP/1.1" 207 2186

Android version

14

Device brand and model

Samsung S22

Stock or custom OS?

Stock

Nextcloud android app version

3.29.2

Nextcloud server version

29.0.3

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

No response

pascalBokBok commented 3 weeks ago

I might just add: When selecting "Activities" in the mobile app it correctly shows the latest activities - way after the server was moved. And the auto-upload seems halfway working. The auto Image uploads is working, but videos seem to be failing. It's like the app is connected - but can't read files...

pascalBokBok commented 3 weeks ago

Sharing e.g. a picture to the Nextcloud app also works fine with uploading it. I can even see it in the "Activities" afterwards. But listing files seem impossible.

GAS85 commented 3 weeks ago

Could be that this bug is known for 5 years? #4157 Also here some what works and what not: https://github.com/nextcloud/android/issues/4157#issuecomment-666978637

pascalBokBok commented 3 weeks ago

yes indeed. However as written above, it half works. So I'd like to keep this as a bug rather than a feature.