owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.36k stars 180 forks source link

[Sharing NG] Add a sharing NG equivalent for the `default_permissions` capability #8741

Open JammingBen opened 5 months ago

JammingBen commented 5 months ago

Describe the bug

Currently, the capabilities contain default_permissions inside the files_sharing object to determine the default permissions a link should have upon creating. This permission concept is however deprecated and originates from the old OCS API. Hence we need a new sharing NG equivalent, I guess default_type, since this property now determines the permissions of a link.

Steps to reproduce

  1. Check default_permissions inside the capabilities response of the server: https://host.docker.internal:9200/ocs/v1.php/cloud/capabilities

Expected behavior

There is some NG equivalent for the default_permissions (e.g. default_type).

Actual behavior

We only have default_permissions.

cc @rhafer

JammingBen commented 4 months ago

@micbar You know my gripes with the link type property, but I guess we will be stuck with it for at least the near future, right?

So I see 2 possible options to solve this issue:

Also, how do you handle deprecated capabilities and env vars in oCIS? Just remove them, or announce the deprecation somewhere?