Skip to content

creating a share with "create" permission also gives "update" permission #717

Closed

Description

@individual-it
  1. curl -k 'https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares' -H 'OCS-APIREQUEST: true' --data-raw 'shareType=0&shareWith=richard&path=%2Ffolder&permissions=4' -ueinstein:relativity | xmllint --format -

Result:

<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <id>1856b3fb-532d-4cac-bc72-f436cc438639</id>
    <share_type>0</share_type>
    <uid_owner>4c510ada-c86b-4815-8820-42cdf82c3d51</uid_owner>
    <displayname_owner>Albert Einstein</displayname_owner>
    <permissions>6</permissions>
    <stime>1603097619</stime>
    <parent/>
    <expiration/>
    <token/>
    <uid_file_owner>4c510ada-c86b-4815-8820-42cdf82c3d51</uid_file_owner>
    <displayname_file_owner>Albert Einstein</displayname_file_owner>
    <additional_info_owner/>
    <additional_info_file_owner/>
    <state>0</state>
    <path>/folder</path>
    <item_type>folder</item_type>
    <mimetype>httpd/unix-directory</mimetype>
    <storage_id>1284d238-aa92-42ce-bdc4-0b0000009162</storage_id>
    <storage>0</storage>
    <item_source>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTYyOjhlZTliODcwLTRkYmItNGFhOC1hMzNjLWQyYzE4OGNhNWQzOA==</item_source>
    <file_source>MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTYyOjhlZTliODcwLTRkYmItNGFhOC1hMzNjLWQyYzE4OGNhNWQzOA==</file_source>
    <file_parent/>
    <file_target>/folder</file_target>
    <share_with>932b4540-8d16-481e-8ef4-588e4b6b151c</share_with>
    <share_with_displayname>Richard Feynman</share_with_displayname>
    <share_with_additional_info/>
    <mail_send>0</mail_send>
    <name/>
  </data>
</ocs>

Activity

  1. dpakach commented on Nov 25, 2020

    @dpakach
    Contributor

    Also tracked here owncloud/product#270

  2. refs commented on Jan 12, 2021

    @refs
    Contributor

    this should be fixed with cs3org/reva#1368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions