nextcloud / android

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

Custom sharing options chosen in web UI are not visible in the android app #11460

Open scr4bble opened 1 year ago

scr4bble commented 1 year ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. Open nextcloud web client.
  2. Share any file or folder and choose only options to download+upload (no editing, no deletion) - doesn't matter whether it's sharing by public link or sharing with users in nextcloud.
  3. Open nextcloud android client and check the share options of the shared folder/file from step 2.
  4. You will probably see three options "View only", "Allow upload and editing" and "File drop (upload only)" while none of these match the saved configuration set in the browser - so none of these radio buttons is chosen.

Expected behaviour

I would expect better flexibility in the Android client so user has the same share options available than in the web app: That means a checklist of 4 permissions while user being able to choose any combination of them:

Actual behaviour

  1. Android app not being able to display certain combination of share permissions if they were set from the web UI (e.g. view+upload).
  2. When setting the sharing from android I am not able to use the combination of permissions that I use most often (view+upload).

Android version

12

Device brand and model

Xiaomi Redmi Note 9 Pro

Stock or custom OS?

Stock

Nextcloud android app version

3.24.1

Nextcloud server version

25.0.3

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

joshtrichards commented 1 year ago

Replicated/confirmed and adding some breadcrumbs to this for context:

The Custom Permissions functionality look to be relatively new on the server-side (v24): https://github.com/nextcloud/server/issues/30227

As far as can I tell Custom Permissions functionality isn't in the current server documentation - e.g. https://docs.nextcloud.com/server/latest/user_manual/en/files/sharing.html

Server-side web client implementation is here:

https://github.com/nextcloud/server/blob/8f59ff880fcc3a90e8eb92292ceefcf36d050733/apps/files_sharing/src/components/SharePermissionsEditor.vue