pondersource / sciencemesh-php

Connect your Nextcloud server to Sciencemesh
MIT License
0 stars 1 forks source link

500 error when creating same share twice #217

Open michielbdejong opened 1 year ago

michielbdejong commented 1 year ago

I'm using reva-cli on mesh.pondersource.org to create a share but when i accidentally try to create a share that already exists, i run into a 500 error on the second call:

ocm-share-create -grantee einstein -idp mesh.pondersource.com /home
ocm-share-create -grantee einstein -idp mesh.pondersource.com /home
am.do https://cloud.pon
dersource.org/index.php/apps/sciencemesh/~einstein/api/ocm/addSentShare
{"resourceId":{"storageId":"00000000-0000
-0000-0000-000000000000","opaqueId":"fileid-/home/"},"name":"home","token":"pxEWxswhmobCKgOKfZBEKiQHPblq5OIQ","gr
antee":{"type":"GRANTEE_TYPE_USER","userId":{"idp":"mesh.pondersource.com","opaqueId":"einstein","type":"USER_TYP
E_PRIMARY"}},"owner":{"idp":"https://mesh.pondersource.org/","opaqueId":"einstein"},"creator":{"idp":"https://mes
h.pondersource.org/","opaqueId":"einstein"},"ctime":{"seconds":"1686732523","nanos":993502366},"mtime":{"seconds"
:"1686732523","nanos":993502366},"shareType":"SHARE_TYPE_USER","accessMethods":[{"transferOptions":{}}]}