pondersource / sciencemesh-php

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

permissions is null in sentShare #179

Closed michielbdejong closed 1 year ago

michielbdejong commented 1 year ago

Reva side:

2023-04-04 14:17:26.771 INF ../reva/pkg/ocm/share/repository/nextcloud/nextcloud.go:427 > am.do https://cloud.pondersource.org/index.php/apps/sciencemesh/~einstei
n/api/ocm/addSentShare {
"resourceId":{"storageId":"00000000-0000-0000-0000-000000000000","opaqueId":"fileid-/home/testing"},
"name":"home",
"token":"0Ozl3nOJ9XmMfpsENWzClt6I1Bv0Au8y",
"grantee":{
"type":"GRANTEE_TYPE_USER",
"userId":{"idp":"sm1.cernbox.cern.ch","opaqueId":"lopresti","type":"USER_TYPE_PRIMARY"}},
"owner":{"idp":"https://mesh.pondersource.org/","opaqueId":"einstein"},
"creator":{"idp":"https://mesh.pondersource.org/","opaqueId":"einstein"},
"ctime":{"seconds":"1680617846","nanos":771238732},
"mtime":{"seconds":"1680617846","nanos":771238732}
,"shareType":"SHARE_TYPE_USER"
} pid=1606466 pkg=rgrpc traceid=0ab453d931377e591afd972a8af352b1 
2023-04-04 14:17:26.872 INF ../reva/pkg/ocm/share/repository/nextcloud/nextcloud.go:448 > am.do response 500 <!DOCTYPE html>

EFSS side:

OCA\\ScienceMesh\\Controller\\OcmController::getPermissionsCode(): Argument #1 ($permissions) must be of type array, null given, called in /var/www/html/apps/sciencemesh/lib/Controller/OcmController.php on line 430
michielbdejong commented 1 year ago

Fixed in https://github.com/pondersource/nc-sciencemesh/commit/9d138a6200d1c3654aef8a773524be4ca07dd18d