Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OCIS] wrong path is send when reshaing a share with user #7179

Closed
grgprarup opened this issue Jun 24, 2022 · 1 comment
Closed

[OCIS] wrong path is send when reshaing a share with user #7179

grgprarup opened this issue Jun 24, 2022 · 1 comment
Labels
Type:Bug Something isn't working

Comments

@grgprarup
Copy link
Contributor

Steps to reproduce

  1. create user1, user2, and user3
  2. create a test-folder for user1, and share it with user2 with the Viewer role
  3. Accept incoming share by user2
  4. As user2, share test-folder from the Shared with me page to user3 with the Viewer role

Expected behaviour

Resharing to another user must succeed and share must be created on the server.
curl -kv -XPOST -u uu2:uu2 https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d shareType=0 -d shareWith=uu3 -d path=Shares/simple-folder -d permissions=17

<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <element>
      <id>81c7103d-e75c-4194-80eb-5814c2549ade</id>
      <share_type>0</share_type>
      <uid_owner>uu2</uid_owner>
      <displayname_owner>Test User 2</displayname_owner>
      <additional_info_owner>[email protected]</additional_info_owner>
      <permissions>17</permissions>
      <stime>1656054423</stime>
      <parent/>
      <expiration/>
      <token/>
      <uid_file_owner>uu1</uid_file_owner>
      <displayname_file_owner>Test User 1</displayname_file_owner>
      <additional_info_file_owner>[email protected]</additional_info_file_owner>
      <state>0</state>
      <path>/simple-folder</path>
      <item_type>folder</item_type>
      <mimetype>httpd/unix-directory</mimetype>
      <storage_id>shared::/Shares/simple-folder</storage_id>
      <storage>0</storage>
      <item_source>1284d238-aa92-42ce-bdc4-0b0000009157$468cce77-55a8-48af-b68d-1233e346297a!159ed5d2-b12c-4d43-8748-5f9e8526b5f0</item_source>
      <file_source>1284d238-aa92-42ce-bdc4-0b0000009157$468cce77-55a8-48af-b68d-1233e346297a!159ed5d2-b12c-4d43-8748-5f9e8526b5f0</file_source>
      <file_parent/>
      <file_target>/Shares/simple-folder</file_target>
      <share_with>uu3</share_with>
      <share_with_user_type>0</share_with_user_type>
      <share_with_displayname>Test User 3</share_with_displayname>
      <share_with_additional_info>[email protected]</share_with_additional_info>
      <mail_send>0</mail_send>
      <name/>
    </element>
  </data>
</ocs>

Actual behaviour

It is sending / in path instead of path having the name of folder when creating reshare
uu2_uu3

It gives response with 100 status code with <file_target>/Shares</file_target>, but share is not created on server.
resp

Environment general

Operating system: ubuntu

Backend (ownCloud Core or Infinite Scale): OCIS (latest)

@grgprarup grgprarup added the Type:Bug Something isn't working label Jun 24, 2022
@kulmann
Copy link
Member

kulmann commented Jun 24, 2022

Resharing doesn't work with web+ocis, yet. #7086 Needs to be finalized and merged first. Please wait with further resharing related investigations until that PR is merged. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants