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

Shared with me row path leading to wrong target #204

Closed
exalate-issue-sync bot opened this issue Sep 4, 2020 · 3 comments · Fixed by cs3org/reva#1346 or owncloud/ocis#994
Closed

Shared with me row path leading to wrong target #204

exalate-issue-sync bot opened this issue Sep 4, 2020 · 3 comments · Fixed by cs3org/reva#1346 or owncloud/ocis#994
Labels
bug Something isn't working p3-medium Type:Bug

Comments

@exalate-issue-sync
Copy link

Steps to reproduce

  1. Setup OCIS with EOS with the default test users
  2. Login as einstein
  3. Create a folder "test"
  4. Share "test" with "marie"
  5. Login as "marie"
  6. Go to the "shared with me" section
  7. Accept the share
  8. Click on the share row

Expected result

Be redirected to the "Shares/test" folder

Actual result

Be redirected to "test" folder and received an error that it does not exist.

In EOS the shares all appear inside the "Shares" folder and for some reason it's not present in the OCS response from "https://localhost:9200/ocs/v2.php/apps/files_sharing//api/v1/shares?format=json&shared_with_me=true&state=all&include_tags=false&format=json":

{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 200,
      "message": "OK"
    },
    "data": [
      {
        "id": "3b7f6ccd-b8f0-40f2-8f58-d6762fd5aeb2",
        "share_type": 0,
        "uid_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
        "displayname_owner": "Albert Einstein",
        "permissions": 15,
        "stime": 1598521286,
        "parent": "",
        "expiration": "",
        "token": "",
        "uid_file_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
        "displayname_file_owner": "Albert Einstein",
        "additional_info_owner": "",
        "additional_info_file_owner": "",
        "state": 0,
        "path": "/abc",
        "item_type": "folder",
        "mimetype": "httpd/unix-directory",
        "storage_id": "1284d238-aa92-42ce-bdc4-0b0000009158",
        "storage": 0,
        "item_source": "MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU4OjIw",
        "file_source": "MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU4OjIw",
        "file_parent": "",
        "file_target": "/abc",
        "share_with": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
        "share_with_displayname": "Marie Curie",
        "share_with_additional_info": "",
        "mail_send": 0,
        "name": ""
      }
    ]
  }
}
{
  "ocs": {
    "meta": {
      "status": "ok",
      "statuscode": 200,
      "message": "OK"
    },
    "data": [
      {
        "id": "3b7f6ccd-b8f0-40f2-8f58-d6762fd5aeb2",
        "share_type": 0,
        "uid_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
        "displayname_owner": "Albert Einstein",
        "permissions": 15,
        "stime": 1598521286,
        "parent": "",
        "expiration": "",
        "token": "",
        "uid_file_owner": "4c510ada-c86b-4815-8820-42cdf82c3d51",
        "displayname_file_owner": "Albert Einstein",
        "additional_info_owner": "",
        "additional_info_file_owner": "",
        "state": 0,
        "path": "/abc",
        "item_type": "folder",
        "mimetype": "httpd/unix-directory",
        "storage_id": "1284d238-aa92-42ce-bdc4-0b0000009158",
        "storage": 0,
        "item_source": "MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU4OjIw",
        "file_source": "MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU4OjIw",
        "file_parent": "",
        "file_target": "/abc",
        "share_with": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
        "share_with_displayname": "Marie Curie",
        "share_with_additional_info": "",
        "mail_send": 0,
        "name": ""
      }
    ]
  }
}

I think here the "files_target" needs to point at "Shares/test"

@exalate-issue-sync exalate-issue-sync bot added bug Something isn't working Exalated This issue is under sync p3-medium labels Sep 4, 2020
@exalate-issue-sync
Copy link
Author

Vincent Petry commented: The UI of ocis-web also doesn't deal well with the "not found error", raised separately https://jira.owncloud.com/browse/OCIS-397

@exalate-issue-sync
Copy link
Author

Remote key is https://jira.owncloud.com/browse/OCIS-396

@exalate-issue-sync exalate-issue-sync bot changed the title [EOS] Shared with me row path leading to wrong target Shared with me row path leading to wrong target Sep 4, 2020
@exalate-issue-sync exalate-issue-sync bot removed the Exalated This issue is under sync label Sep 4, 2020
@exalate-issue-sync
Copy link
Author

Vincent Petry commented: also happening with OC storage as it also has the "/Shared" prefix requirement

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