Closed T0mWz closed 1 year ago
@T0mWz can you share the error on the receiver side? It seems there should be an error on the share receiver party in the create share
phase. the 500 error is coming from the receiver in response to the create share OCM message
.
the second error may disappear after overcoming on first error.
See #193 too.
@T0mWz No, It seems it has a different error: It seems your core code is a little bit different than ours.
``` "reqId":"ZIa@@KzPpvVAbue9QLMxLAAAAAg","level":3,"time":"12\/Jun\/2023:08:45:12","remoteAddr":"10.234.0.3","user":"--","app":"index","method":"POST","url":"\/index.php\/apps\/federatedfilesharing\/shares", -------->"message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined method OCA\\FederatedGroups\\AppInfo\\Application::getOcmController()\",\"Code\":0,\"Trace\":\"
------->#7 {main}\",\"File\":\"\\/var\\/www\\/owncloud\\/apps\\/federatedfilesharing\\/lib\\/Controller\\/OcmController.php\",\"Line\":185}"
according to the message line and line #7, the error occurs in line 185 of federatedfilesharing\OcmController.php.
But according to this link:
it is in the parameter list of the create share function, So, my conclusion is: the receiver code is not matched with our patched version on the Owncloud.
@T0mWz @michielbdejong @thepeak99 I am looking for a session to investigate more in detail.
Updated the apps again. Encounter an another issue;
{"reqId":"ZIxodH1VWed9XRNc_Vde_wAAAAs","level":3,"time":"16\/Jun\/2023:15:49:40","remoteAddr":"10.234.2.58","user":"--","app":"index","method":"POST","url":"\/index.php\/apps\/federatedfilesharing\/notifications","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined method OCA\\\\FederatedGroups\\\\AppInfo\\\\Application::getOcmController()\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OCA\\\\FederatedFileSharing\\\\Controller\\\\OcmController->processNotification()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(916): OC\\\\Route\\\\Router->match()\\n#6 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#7 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/federatedfilesharing\\\/lib\\\/Controller\\\/OcmController.php\",\"Line\":312}"}
{"reqId":"ZIxobp9Lw2NscQMYX1tdGgAAAA0","level":3,"time":"16\/Jun\/2023:15:49:34","remoteAddr":"10.234.0.3","user":"surfsara","app":"index","method":"GET","url":"\/index.php\/apps\/files_sharing\/api\/externalShares","message":"Exception: {\"Exception\":\"Error\",\"Message\":\"Call to undefined method OCA\\\\FederatedGroups\\\\AppInfo\\\\Application::getExternalManager()\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/AppInfo\\\/Application.php(84): OCA\\\\Files_Sharing\\\\Controllers\\\\ExternalSharesController->__construct()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/pimple\\\/pimple\\\/src\\\/Pimple\\\/Container.php(122): OCA\\\\Files_Sharing\\\\AppInfo\\\\Application->OCA\\\\Files_Sharing\\\\AppInfo\\\\{closure}(*** sensitive parameters replaced ***)\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(107): Pimple\\\\Container->offsetGet()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(76): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(916): OC\\\\Route\\\\Router->match()\\n#7 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_sharing\\\/lib\\\/Controllers\\\/ExternalSharesController.php\",\"Line\":74}"}
As attachment my applied patch owncloud-sram-10.12.1.patch
So, I checked again and it seems that your Owncloud core version is not the same as ours in this branch. Are you sure that you are using the correct git branch to apply the patches?
as you can find in this link there is no Application::getOcmController()
method call:
but your log is addressing call of Application::getOcmController()
function:
{"reqId":"ZIxodH1VWed9XRNc_Vde_wAAAAs","level":3,"time":"16\/Jun\/2023:15:49:40","remoteAddr":"10.234.2.58","user":"--","app":"index","method":"POST","url":"\/index.php\/apps\/federatedfilesharing\/notifications","message":"Exception: {\"Exception\":\"Error\",
---------->\"Message\":\"Call to undefined method OCA\\\\FederatedGroups\\\\AppInfo\\\\Application::getOcmController()\",\"Code\":0,\"Trace\":\"
#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(169): OCA\\\\FederatedFileSharing\\\\Controller\\\\OcmController->processNotification()\\n
#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n
#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(99): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n
#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n
#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n
#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(916): OC\\\\Route\\\\Router->match()\\n
#6 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n
----------> #7 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/federatedfilesharing\\\/lib\\\/Controller\\\/OcmController.php\",\"Line\":312}"}
``` "reqId":"ZIa@@KzPpvVAbue9QLMxLAAAAAg","level":3,"time":"12/Jun/2023:08:45:12","remoteAddr":"10.234.0.3","user":"--","app":"index","method":"POST","url":"/index.php/apps/federatedfilesharing/shares", -------->"message":"Exception: {"Exception":"Error","Message":"Call to undefined method OCA\FederatedGroups\AppInfo\Application::getOcmController()","Code":0,"Trace":" #0 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(169): OCA\FederatedFileSharing\Controller\OcmController->createShare()\n #1 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController()\n #2 \/var\/www\/owncloud\/lib\/private\/AppFramework\/App.php(99): OC\AppFramework\Http\Dispatcher->dispatch()\n #3 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\AppFramework\App::main()\n #4 \/var\/www\/owncloud\/lib\/private\/Route\/Router.php(344): OC\AppFramework\Routing\RouteActionHandler->__invoke()\n #5 \/var\/www\/owncloud\/lib\/base.php(916): OC\Route\Router->match()\n #6 \/var\/www\/owncloud\/index.php(54): OC::handleRequest()\n ------->#7 {main}","File":"\/var\/www\/owncloud\/apps\/federatedfilesharing\/lib\/Controller\/OcmController.php","Line":185}"
according to the message line and line #7, the error occurs in line 185 of federatedfilesharing\OcmController.php.
But according to this link:
it is in the parameter list of the create share function, So, my conclusion is: the receiver code is not matched with our patched version on the Owncloud.
@T0mWz @michielbdejong @thepeak99 I am looking for a session to investigate more in detail.
This app version is different then my app version..
Here is an app version number.. Please use that, so it's more clear of we are in sync in stead of apply your own patches.. https://github.com/pondersource/core/blob/c2d3c6b32651279b8c5c519a476d5e5c864d928b/apps/federatedfilesharing/appinfo/info.xml#L8
@T0mWz sorry we could not because we have some changes on that app you can find our changes in this branch
@T0mWz sorry we could not because we have some changes on that app you can find our changes in this branch
@navid-shokri How should I find out what changes you all made? Can you provide me with a patch / diff file?
absolutely yes!!!
Creating a group share Receiving party - Aperture:
Sended party - Miskatonic;
Removing a group share Receiving party - Aperture
Sended party - Miskatonic