pondersource / sciencemesh-php

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

Data too long for column 'remote_id' at row 1 #100

Closed michielbdejong closed 2 years ago

michielbdejong commented 2 years ago

This happens on nc2.docker when it receives this from revanc2.docker:

https://nc2.docker/index.php/apps/sciencemesh/~marie/api/ocm/addReceivedShare
{"share":{"resourceId":{"storageId":"remote", "opaqueId":"/home/my-folder"},
"name":"/home/my-folder",
"permissions":{"permissions":{"getPath":true, "getQuota":true, "initiateFileDownload":true, "listGrants":true, "listContainer":true, "listFileVersions":true, "listRecycle":true, "stat":true}},
"grantee":{"type":"GRANTEE_TYPE_USER", "userId":{"idp":"https://revanc2.docker/", "opaqueId":"marie"},
"opaque":{"map":{"remoteShareId":{"decoder":"plain", "value":"eyJpZCI6eyJvcGFxdWVfaWQiOm51bGx9LCJyZXNvdXJjZV9pZCI6eyJvcGFxdWVfaWQiOiJmaWxlaWQtXC9laW5zdGVpblwvZmlsZXNcL215LWZvbGRlciJ9LCJwZXJtaXNzaW9ucyI6eyJwZXJtaXNzaW9ucyI6eyJhZGRfZ3JhbnQiOmZhbHNlLCJjcmVhdGVfY29udGFpbmVyIjpmYWxzZSwiZGVsZXRlIjpmYWxzZSwiZ2V0X3BhdGgiOmZhbHNlLCJnZXRfcXVvdGEiOmZhbHNlLCJpbml0aWF0ZV9maWxlX2Rvd25sb2FkIjpmYWxzZSwiaW5pdGlhdGVfZmlsZV91cGxvYWQiOmZhbHNlfX0sImdyYW50ZWUiOnsidHlwZSI6MSwiaWQiOnsib3BhcXVlX2lkIjoibWFyaWUiLCJpZHAiOiJodHRwczpcL1wvcmV2YW5jMi5kb2NrZXJcLyJ9fSwib3duZXIiOnsiaWQiOnsib3BhcXVlX2lkIjoiZWluc3RlaW4iLCJpZHAiOiJodHRwczpcL1wvcmV2YW5jMS5kb2NrZXJcLyJ9fSwiY3JlYXRvciI6eyJpZCI6eyJvcGFxdWVfaWQiOiJlaW5zdGVpbiIsImlkcCI6Imh0dHBzOlwvXC9yZXZhbmMxLmRvY2tlclwvIn19LCJjdGltZSI6eyJzZWNvbmRzIjowfSwibXRpbWUiOnsic2Vjb25kcyI6MH19"}, 
"sharedSecret":{"decoder":"plain", "value":"ekJNU1NoQkN2WA=="}}}},
"owner":{"idp":"https://revanc1.docker/", "opaqueId":"einstein", "type":"USER_TYPE_PRIMARY"},
"creator":{"idp":"https://revanc1.docker/", "opaqueId":"einstein", "type":"USER_TYPE_PRIMARY"}, 
"shareType":"SHARE_TYPE_REGULAR"}, "state":"SHARE_STATE_PENDING"}
michielbdejong commented 2 years ago

not sure what it encoded into the long remoteShareId value under opaque.

michielbdejong commented 2 years ago

Debugging this with the efss-backend-fixes branch of reva

michielbdejong commented 2 years ago

revanc1 logs: in OCM Send! https://revanc2.docker/ocm/shares { "meshProvider":"https://revanc1.docker/", "name":"/home/my-folder", "owner":"einstein", "protocol":{"name":"webdav","options":{"permissions":"1","sharedSecret":"cLRCpphhno"}}, "providerId":"{\"id\":{\"opaque_id\":null},\"resource_id\":{\"opaque_id\":\"fileid-\/einstein\/files\/my-folder\"},\"permissions\":{\"permissions\":{\"add_grant\":false,\"create_container\":false,\"delete\":false,\"get_path\":false,\"get_quota\":false,\"initiate_file_download\":false,\"initiate_file_upload\":false}},\"grantee\":{\"type\":1,\"id\":{\"opaque_id\":\"marie\",\"idp\":\"https:\/\/revanc2.docker\/\"}},\"owner\":{\"id\":{\"opaque_id\":\"einstein\",\"idp\":\"https:\/\/revanc1.docker\/\"}},\"creator\":{\"id\":{\"opaque_id\":\"einstein\",\"idp\":\"https:\/\/revanc1.docker\/\"}},\"ctime\":{\"seconds\":0},\"mtime\":{\"seconds\":0}}", "shareWith":"marie"}