nextcloud / android

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

Auto upload can't recreate subfolders deleted by other client #13994

Open dataprolet opened 4 days ago

dataprolet commented 4 days ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. Create auto upload using subfolders and upload anything
  2. Delete subfolders from another client
  3. Auto upload fails with "File not found"

Manually creating the subfolders e. g. "./2024/11" results in auto upload working again on the next try.

Expected behaviour

Auto upload should check, if the necessary subfolders are present and create them if not.

Actual behaviour

Auto upload can't find the previously created subfolders and fails with a misleading error message.

Android version

15

Device brand and model

Google Pixel 7a

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.30.4

Nextcloud server version

30.0.0.14

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

Additional information

Android version: GrapheneOS (Android 15) Build 2024110700

I can't access the Android clients log, because on GrapheneOS I have no access to the system's filesystem.

The Nextcloud server log does not contain any relevant error (only the current Driver exception bug [nextcloud/all-in-one/discussions/5277] and failed login attempts).

I suspect that the Android client is not refreshing the auto upload directory correctly, because when I recreate the subfolders I saw some files for a split second, then the client syncs and the subfolder is empty as it should be.

I'm using storage scopes and only allow the app access to the folders it should auto upload from.

dataprolet commented 4 days ago

Related and possible duplicate of #12400.