android icon indicating copy to clipboard operation
android copied to clipboard

Android client after url change: Server not available

Open pascalBokBok opened this issue 1 year ago • 4 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

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 avatar Aug 23 '24 09:08 pascalBokBok

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 avatar Aug 23 '24 09:08 pascalBokBok

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.

pascalBokBok avatar Aug 26 '24 07:08 pascalBokBok

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

GAS85 avatar Aug 26 '24 20:08 GAS85

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

pascalBokBok avatar Aug 26 '24 21:08 pascalBokBok