During debug session with Marek, Milan, Giuseppe, Antoon, Thirsa, David, Mirek and David etc.
{
"reqId": "0JexICKyaKvpcurBglCv",
"level": 3,
"time": "2023-06-02T12:52:58+00:00",
"remoteAddr": "192.248.171.117",
"user": "einstein",
"app": "no app in context",
"method": "DELETE",
"url": "/ocs/v2.php/apps/files_sharing/api/v1/shares/14",
"message": "Server error: `POST https://sciencemesh.cesnet.cz/ocs/v2.php/cloud/shares/14/unshare?format=json` resulted in a `500 Internal Server Error` response:\nInternal Server Error\n",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0",
"version": "26.0.0.6",
"exception": {
"Exception": "GuzzleHttp\\Exception\\ServerException",
"Message": "Server error: `POST https://sciencemesh.cesnet.cz/ocs/v2.php/cloud/shares/14/unshare?format=json` resulted in a `500 Internal Server Error` response:\nInternal Server Error\n",
"Code": 500,
"Trace": [
{
"file": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php",
"line": 69,
"function": "create",
"class": "GuzzleHttp\\Exception\\RequestException",
"type": "::"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 204,
"function": "GuzzleHttp\\{closure}",
"class": "GuzzleHttp\\Middleware",
"type": "::",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 153,
"function": "callHandler",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php",
"line": 48,
"function": "GuzzleHttp\\Promise\\{closure}",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "::",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 248,
"function": "run",
"class": "GuzzleHttp\\Promise\\TaskQueue",
"type": "->"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 224,
"function": "invokeWaitFn",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 269,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 226,
"function": "invokeWaitList",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php",
"line": 62,
"function": "waitIfPending",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php",
"line": 187,
"function": "wait",
"class": "GuzzleHttp\\Promise\\Promise",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Http/Client/Client.php",
"line": 297,
"function": "request",
"class": "GuzzleHttp\\Client",
"type": "->"
},
{
"file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php",
"line": 385,
"function": "post",
"class": "OC\\Http\\Client\\Client",
"type": "->"
},
{
"file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php",
"line": 359,
"function": "tryLegacyEndPoint",
"class": "OCA\\FederatedFileSharing\\Notifications",
"type": "->"
},
{
"file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php",
"line": 292,
"function": "tryHttpPostToShareEndpoint",
"class": "OCA\\FederatedFileSharing\\Notifications",
"type": "->"
},
{
"file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php",
"line": 222,
"function": "sendUpdateToRemote",
"class": "OCA\\FederatedFileSharing\\Notifications",
"type": "->"
},
{
"file": "/var/www/html/apps/federatedfilesharing/lib/FederatedShareProvider.php",
"line": 560,
"function": "sendRemoteUnShare",
"class": "OCA\\FederatedFileSharing\\Notifications",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Share20/Manager.php",
"line": 1238,
"function": "delete",
"class": "OCA\\FederatedFileSharing\\FederatedShareProvider",
"type": "->"
},
{
"file": "/var/www/html/apps/files_sharing/lib/Controller/ShareAPIController.php",
"line": 444,
"function": "deleteShare",
"class": "OC\\Share20\\Manager",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "deleteShare",
"class": "OCA\\Files_Sharing\\Controller\\ShareAPIController",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 183,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 63,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php",
"Line": 113,
"CustomMessage": "--"
}
}
2023-06-02 12:51:36.739 WRN ../reva/internal/http/interceptors/log/log.go:108 > http end="02/Jun/2023:12:51:36 +0000" host=195.216.97.242 method=POST pid=151912 pkg=rhttp proto=HTTP/1.1 size=0 start="02/Jun/2023:12:51:36 +0000" status=401 time_ns=1765044 traceid=80c8025aedfecd5dd96da8a476be1bbe uri=/ocs/v2.php/cloud/shares/19/unshare?format=json url=/ocs/v2.php/cloud/shares/19/unshare?format=json
During debug session with Marek, Milan, Giuseppe, Antoon, Thirsa, David, Mirek and David etc.
We found that we can unshare from oc to oc, oc to nc but not nc to OC:
Nextcloud log:
{ "reqId": "0JexICKyaKvpcurBglCv", "level": 3, "time": "2023-06-02T12:52:58+00:00", "remoteAddr": "192.248.171.117", "user": "einstein", "app": "no app in context", "method": "DELETE", "url": "/ocs/v2.php/apps/files_sharing/api/v1/shares/14", "message": "Server error: `POST https://sciencemesh.cesnet.cz/ocs/v2.php/cloud/shares/14/unshare?format=json` resulted in a `500 Internal Server Error` response:\nInternal Server Error\n", "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0", "version": "26.0.0.6", "exception": { "Exception": "GuzzleHttp\\Exception\\ServerException", "Message": "Server error: `POST https://sciencemesh.cesnet.cz/ocs/v2.php/cloud/shares/14/unshare?format=json` resulted in a `500 Internal Server Error` response:\nInternal Server Error\n", "Code": 500, "Trace": [ { "file": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php", "line": 69, "function": "create", "class": "GuzzleHttp\\Exception\\RequestException", "type": "::" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 204, "function": "GuzzleHttp\\{closure}", "class": "GuzzleHttp\\Middleware", "type": "::", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 153, "function": "callHandler", "class": "GuzzleHttp\\Promise\\Promise", "type": "::" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php", "line": 48, "function": "GuzzleHttp\\Promise\\{closure}", "class": "GuzzleHttp\\Promise\\Promise", "type": "::", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 248, "function": "run", "class": "GuzzleHttp\\Promise\\TaskQueue", "type": "->" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 224, "function": "invokeWaitFn", "class": "GuzzleHttp\\Promise\\Promise", "type": "->" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 269, "function": "waitIfPending", "class": "GuzzleHttp\\Promise\\Promise", "type": "->" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 226, "function": "invokeWaitList", "class": "GuzzleHttp\\Promise\\Promise", "type": "->" }, { "file": "/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php", "line": 62, "function": "waitIfPending", "class": "GuzzleHttp\\Promise\\Promise", "type": "->" }, { "file": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php", "line": 187, "function": "wait", "class": "GuzzleHttp\\Promise\\Promise", "type": "->" }, { "file": "/var/www/html/lib/private/Http/Client/Client.php", "line": 297, "function": "request", "class": "GuzzleHttp\\Client", "type": "->" }, { "file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php", "line": 385, "function": "post", "class": "OC\\Http\\Client\\Client", "type": "->" }, { "file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php", "line": 359, "function": "tryLegacyEndPoint", "class": "OCA\\FederatedFileSharing\\Notifications", "type": "->" }, { "file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php", "line": 292, "function": "tryHttpPostToShareEndpoint", "class": "OCA\\FederatedFileSharing\\Notifications", "type": "->" }, { "file": "/var/www/html/apps/federatedfilesharing/lib/Notifications.php", "line": 222, "function": "sendUpdateToRemote", "class": "OCA\\FederatedFileSharing\\Notifications", "type": "->" }, { "file": "/var/www/html/apps/federatedfilesharing/lib/FederatedShareProvider.php", "line": 560, "function": "sendRemoteUnShare", "class": "OCA\\FederatedFileSharing\\Notifications", "type": "->" }, { "file": "/var/www/html/lib/private/Share20/Manager.php", "line": 1238, "function": "delete", "class": "OCA\\FederatedFileSharing\\FederatedShareProvider", "type": "->" }, { "file": "/var/www/html/apps/files_sharing/lib/Controller/ShareAPIController.php", "line": 444, "function": "deleteShare", "class": "OC\\Share20\\Manager", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 230, "function": "deleteShare", "class": "OCA\\Files_Sharing\\Controller\\ShareAPIController", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 137, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/App.php", "line": 183, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/var/www/html/lib/private/Route/Router.php", "line": 315, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/var/www/html/ocs/v1.php", "line": 63, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/var/www/html/ocs/v2.php", "line": 23, "args": [ "/var/www/html/ocs/v1.php" ], "function": "require_once" } ], "File": "/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php", "Line": 113, "CustomMessage": "--" } }Reva on Nextcloud side log: