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

Cannot create share through reva-cli in examples/sciencemesh #4054

Open
michielbdejong opened this issue Jul 10, 2023 · 2 comments
Open

Cannot create share through reva-cli in examples/sciencemesh #4054

michielbdejong opened this issue Jul 10, 2023 · 2 comments

Comments

@michielbdejong
Copy link
Contributor

Steps to reproduce:

status:<code:CODE_OK trace:"65df4f0de78d8204add53678bd2de55a" >
invite_token:<
  token:"cf284531-73f1-471c-813a-dc81ffb31af8"  <---- remember this value!
  user_id:<
    idp:"https://revanextcloud1.docker/"
    opaque_id:"einstein"
  >
  expiration:<
    seconds:1687853903
  >
>
  • Terminal window 2

    • docker exec -it revanextcloud2.docker bash
      • cd /reva
      • git config --global --add safe.directory /reva
      • make reva
      • ./cmd/reva/reva -insecure -host localhost:19000
        • login basic
          • marie
          • radiactivity
        • ocm-invite-forward -idp revanextcloud1.docker -token cf284531-73f1-471c-813a-dc81ffb31af8 <---- value from earlier!
  • Terminal window 1, inside revanextcloud1.docker, inside reva-cli, logged in as einstein, continue:

    • mkdir /home/etoa
    • ocm-find-accepted-users
    • ocm-share-create -idp revanc2.docker -grantee marie /home/etoa
+-----+-------------------------+----------------+----------------------------------------------------------------------------------+-------------------+----------------+------------------+-------------------------------+-------------------------------+
| #   | OWNER.IDP               | OWNER.OPAQUEID | RESOURCEID                                                                       | TYPE              | GRANTEE.IDP    | GRANTEE.OPAQUEID | CREATED                       | UPDATED                       |
+-----+-------------------------+----------------+----------------------------------------------------------------------------------+-------------------+----------------+------------------+-------------------------------+-------------------------------+
| "1" | https://revanextcloud1.docker/ | einstein       | storage_id:"00000000-0000-0000-0000-000000000000" opaque_id:"fileid-/home/etoa"  | GRANTEE_TYPE_USER | revanextcloud2.docker | marie            | 2023-06-26 08:20:01 +0000 UTC | 2023-06-26 08:20:01 +0000 UTC |
+-----+-------------------------+----------------+----------------------------------------------------------------------------------+-------------------+----------------+------------------+-------------------------------+-------------------------------+
  • And:
    • ocm-share-list
+---+-----------+----------------+------------+----------------------+--------------------+----------------+------------------+-------------------------------+-------------------------------+
| # | OWNER.IDP | OWNER.OPAQUEID | RESOURCEID | TYPE                 | SHARETYPE          | GRANTEE.IDP    | GRANTEE.OPAQUEID | CREATED                       | UPDATED                       |
+---+-----------+----------------+------------+----------------------+--------------------+----------------+------------------+-------------------------------+-------------------------------+
| 1 | unknown   | einstein       | <nil>      | GRANTEE_TYPE_INVALID | SHARE_TYPE_INVALID | revanextcloud2.docker | marie            | 1970-01-01 00:00:00 +0000 UTC | 1970-01-01 00:00:00 +0000 UTC |
+---+-----------+----------------+------------+----------------------+--------------------+----------------+------------------+-------------------------------+-------------------------------+
  • But in terminal window 2, inside revanextcloud2.docker, inside reva-cli, logged in as marie, continue:
    • ocm-share-list-received
+---+-----------+----------------+---------------+------+-------------+------------------+---------+---------+-------+-----------+
| # | OWNER.IDP | OWNER.OPAQUEID | REMOTESHAREID | TYPE | GRANTEE.IDP | GRANTEE.OPAQUEID | CREATED | UPDATED | STATE | SHARETYPE |
+---+-----------+----------------+---------------+------+-------------+------------------+---------+---------+-------+-----------+
+---+-----------+----------------+---------------+------+-------------+------------------+---------+---------+-------+-----------+

So to [email protected] it looks like the share was sent, but [email protected] did not see anything arrive.

@michielbdejong
Copy link
Contributor Author

2023-07-10 13:50:41.829 INF ../../reva/pkg/ocm/share/repository/nextcloud/nextcloud.go:452 > am.do 
https://nextcloud2.docker/index.php/apps/sciencemesh/~marie/api/ocm/ListReceivedShares  
pid=1257 pkg=rgrpc traceid=5de337f62817321992bab59a9073ba59
2023-07-10 13:50:41.96 INF ../../reva/pkg/ocm/share/repository/nextcloud/nextcloud.go:473 > am.do 
response 200 [] pid=1257 pkg=rgrpc traceid=5de337f62817321992bab59a9073ba59

@michielbdejong
Copy link
Contributor Author

Fixed for NC with sciencemesh/nc-sciencemesh@398787a
Will test with OC.

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

No branches or pull requests

1 participant