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

Received shares do not work for viewers #2471

Closed
mateusz-garlacz opened this issue Jan 24, 2022 · 0 comments · Fixed by #2478
Closed

Received shares do not work for viewers #2471

mateusz-garlacz opened this issue Jan 24, 2022 · 0 comments · Fixed by #2478

Comments

@mateusz-garlacz
Copy link

Hi, I am unable to update a received share. The share is not visible on the recipient's site neither. This happens only when the grantee's permissions are set to viewer. Steps to reproduce the issue:

magc@magc:~/reva$ ./cmd/reva/reva --insecure login basic
username: einstein
password: OK
magc@magc:~/reva$ ./cmd/reva/reva --insecure upload test.txt /home/test-viewer.txt
Local file size: 13 bytes
Data server: http://magc:19001/datagateway
Allowed checksums: [type:RESOURCE_CHECKSUM_TYPE_MD5 priority:100  type:RESOURCE_CHECKSUM_TYPE_UNSET priority:1000 ]
Checksum selected: RESOURCE_CHECKSUM_TYPE_MD5
Local XS: RESOURCE_CHECKSUM_TYPE_MD5:c2a8ed7ddbf759a67b2d5ea256f05fb8
File uploaded: 123e4567-e89b-12d3-a456-426655440000:fileid-einstein%2Ftest-viewer.txt 13 /home/test-viewer.txt
magc@magc:~/reva$ ./cmd/reva/reva --insecure share-create -grantee f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c -idp http://localhost:20080 -rol viewer -type user /home/test-viewer.txt
+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+
| #                                    | OWNER.IDP              | OWNER.OPAQUEID                       | RESOURCEID                                                                                       | PERMISSIONS                                                 | TYPE              | GRANTEE.IDP            | GRANTEE.OPAQUEID                     | CREATED                       | UPDATED                       |
+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+
| f23b5daf-6a93-442e-8144-656a6c672749 | http://localhost:20080 | 4c510ada-c86b-4815-8820-42cdf82c3d51 | storage_id:"123e4567-e89b-12d3-a456-426655440000" opaque_id:"fileid-einstein%2Ftest-viewer.txt"  | permissions:<get_path:true list_container:true stat:true >  | GRANTEE_TYPE_USER | http://localhost:20080 | f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c | 2022-01-24 23:44:18 +0100 CET | 2022-01-24 23:44:18 +0100 CET |
+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+
magc@magc:~/reva$ ./cmd/reva/reva --insecure login basic
username: marie
password: OK
magc@magc:~/reva$ ./cmd/reva/reva --insecure share-list-received
+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+---------------------+
| #                                    | OWNER.IDP              | OWNER.OPAQUEID                       | RESOURCEID                                                                                 | PERMISSIONS                                                                                                                                                                                                     | TYPE              | GRANTEE.IDP            | GRANTEE.OPAQUEID                     | CREATED                       | UPDATED                       | STATE               |
+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+---------------------+

+--------------------------------------+------------------------+--------------------------------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+------------------------+--------------------------------------+-------------------------------+-------------------------------+---------------------+
magc@magc:~/reva$

This is not the case when the rol flag is set to editor. I built reva on master commit 393f831 and followed the official README and run it on storage-references config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant