Skip to content

Allign WebDAV's <oc:permissions> with ocs permissions #30382

Closed

Description

@SamuAlfageme

See for reference & discussion owncloud/client#6346 (comment)

The oc:permissions of a "shared with me; cannot edit but can reshare" :

<oc:permissions>SRDNVW</oc:permissions>

... this is returned in both WebDAV endpoints (old & new). Based on client mappings:

https://github.com/owncloud/client/blob/cedf72825bc0db8e3c147958a9382ee5b411d9ea/src/common/remotepermissions.h#L42-L54

This is not consistent with the semantics of "Shared with me; can reshare but nothing else".

For everything to be sound with the files backend behavior, the permissions should be:

<oc:permissions>SRDV</oc:permissions>

... since Rename and Delete operations are also allowed for this file. And to be aligned with the response of of http://localhost/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=/test&shared_with_me=true:

{
   "ocs":{
      "meta":{
         "status":"ok",
         "statuscode":200,
         "message":null
      },
      "data":[
         {
            "id":"2",
            "share_type":0,
            "uid_owner":"demo",
            "displayname_owner":"demo",
            "permissions":17,

Activity

  1. SamuAlfageme commented on Feb 6, 2018

    @SamuAlfageme
    Author

    Linking @PVince81's "suspected similar" issue: #20685

  2. PVince81 commented on Feb 6, 2018

    @PVince81
    Contributor

    Likely duplicate of #20426

  3. SamuAlfageme commented on Feb 6, 2018

    @SamuAlfageme
    Author

    @PVince81 closing in favor of that one. Will update its title tho.

  4. lock commented on Jul 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions