owncloud / product

ownCloud Product Backlog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Difference in share permissions and roles in core and ocis #303

Closed jasson99 closed 3 years ago

jasson99 commented 3 years ago

Description:

Different share permissions have varying role in core and ocis

In OC10:

  1. Create a share with permissions 31 or default has role specified as Editor. curl -k -X POST http://localhost/oc/ocs/v2.php/apps/files_sharing/api/v1/shares\?format\=json -d path="new new" -d shareWith="test123" -d permissions=31 -d shareType="0" -u admin:admin -v;

  2. Create a share with permissions 1 has role specified as Advanced Permissions curl -k -X POST http://localhost/oc/ocs/v2.php/apps/files_sharing/api/v1/shares\?format\=json -d path="new new" -d shareWith="test123" -d permissions=1 -d shareType="0" -u admin:admin -v;

  3. Create a share with permissions 17 has role specified as Viewer curl -k -X POST http://localhost/oc/ocs/v2.php/apps/files_sharing/api/v1/shares\?format\=json -d path="new new" -d shareWith="test123" -d permissions=17 -d shareType="0" -u admin:admin -v;

In OCIS:

  1. Create a share with permissions 31 or default has role specified as Advanced Permissions. curl -k -u admin:admin -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d permissions=31 -d path="new new" -d shareType=0 -d shareWith="user1" |xmllint --format -

  2. Create a share with permissions 1 has role specified as Viewer curl -k -u admin:admin -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d permissions=1 -d path="new new" -d shareType=0 -d shareWith="user1" |xmllint --format -

  3. Create a share with permissions 17 has role specified as Advanced Permissions curl -k -u admin:admin -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d permissions=17 -d path="new new" -d shareType=0 -d shareWith="user1" |xmllint --format -

jasson99 commented 3 years ago

Similar issue in ocis repo