pondersource / oc-sciencemesh

Sciencemesh app for Own Cloud
MIT License
0 stars 1 forks source link

No share type provider for share type 1000 #25

Closed michielbdejong closed 1 year ago

michielbdejong commented 1 year ago

Shown when Einstein picks "Marie (guest)"

michielbdejong commented 1 year ago

I made this problem go away by using share type 6 instead of 1000 in the following branches of repos:

Einstein sees welcome.txt as shared with marie@revaoc2.docker and no error message appears in the GUI. But I don't see any log entries anywhere about it, so I don't even know whether it correctly took the code path through our ScienceMeshProviderFactory. Investigating.

michielbdejong commented 1 year ago
[Tue Oct 18 12:29:32.164950 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] ScienceMeshProviderFactory returns its ScienceMesh share provider
[Tue Oct 18 12:29:32.164994 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: Creating share!
[Tue Oct 18 12:29:32.165062 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: getSharedWith!
[Tue Oct 18 12:29:32.167564 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: Creating ScienceMesh share!
[Tue Oct 18 12:29:32.167644 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: addSentShareToDB!
[Tue Oct 18 12:29:32.177554 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: getRawShare!
[Tue Oct 18 12:29:32.178627 2022] [php7:notice] [pid 26] [client 172.30.0.2:36136] SMSP: createShareObject!
michielbdejong commented 1 year ago

Undefined property: OCA\\ScienceMesh\\ShareProvider\\ScienceMeshShareProvider::$cloudIdManager I think this is where it should just be doing the call to reva. updated that. Now:

[Tue Oct 18 12:50:35.659357 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] sending Share to reva
[Tue Oct 18 12:50:35.660858 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] share detail 'sourcePath': '/home/ljh/'
[Tue Oct 18 12:50:35.660883 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] share detail 'targetPath': '/ljh/'
[Tue Oct 18 12:50:35.660891 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] share detail 'type': 'dir'
[Tue Oct 18 12:50:35.660897 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] share detail 'recipientUsername': ''
[Tue Oct 18 12:50:35.660904 2022] [php7:notice] [pid 9] [client 172.30.0.2:48776] share detail 'recipientHost': ''
michielbdejong commented 1 year ago

it's now actually calling the reva client but obviously getting a Missing recipientHost exception.

michielbdejong commented 1 year ago

Done