Nextcloud 18, maps prevents deletion of shares

Hello everybody,

when I try to delete a share, it doesn’t work.
When I disable the maps App, it all works fine.

Thank you in advance,
Volker

Exception: Call to undefined method OCA\Maps\ServicePhotofilesService::safeDeleteByFolderIdUserId()

  1. /usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh … {}, “deleteShare”)
  2. /usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Files_ … r”, “deleteShare”, OC\AppFramew … {}, { id: “99”,_ … "})
  3. <>OC\AppFramework\Routing\RouteActionHandler->_invoke({ id: “99”, … "})
  4. /usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:call_user_func(OC\AppFramew … {}, { id: “99”,_ … "})
  5. /usr/share/nginx/nextcloud/ocs/v1.php - line 82:OC\Route\Router->match("/ocsapp/app … 9")
  6. /usr/share/nginx/nextcloud/ocs/v2.php - line 24:require_once("/usr/share/ … p")

Verursacht durchError: Call to undefined method OCA\Maps\Service\PhotofilesService::safeDeleteByFolderIdUserId()

  1. /usr/share/nginx/nextcloud/lib/private/legacy/hook.php - line 111:OCA\Maps\Hooks\FileHooks->preUnShare({ id: “99”,i … "})
  2. /usr/share/nginx/nextcloud/lib/private/Share20/LegacyHooks.php - line 63:OC_Hook::emit(“OCP\Share”, “pre_unshare”, { id: “99”,i … "})
  3. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 260:OC\Share20\LegacyHooks->preUnshare(Symfony\Comp … {}, “OCP\Share::preUnshare”, Symfony\Comp … {})
  4. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 235:Symfony\Component\EventDispatcher\EventDispatcher->doDispatch([ Closure {},Closure {}], “OCP\Share::preUnshare”, Symfony\Comp … {})
  5. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 73:Symfony\Component\EventDispatcher\EventDispatcher->callListeners([ Closure {},Closure {}], “OCP\Share::preUnshare”, Symfony\Comp … {})
  6. /usr/share/nginx/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php - line 70:Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Symfony\Comp … {}, Symfony\Comp … {})
  7. /usr/share/nginx/nextcloud/lib/private/Share20/Manager.php - line 1121:OC\EventDispatcher\SymfonyAdapter->dispatch(“OCP\Share::preUnshare”, Symfony\Comp … {})
  8. /usr/share/nginx/nextcloud/apps/files_sharing/lib/Controller/ShareAPIController.php - line 369:OC\Share20\Manager->deleteShare(OC\Share20\Share {})
  9. /usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:OCA\Files_Sharing\Controller\ShareAPIController->deleteShare(“99”)
  10. /usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Sh … {}, “deleteShare”)
  11. /usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sh … {}, “deleteShare”)
  12. /usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Files_ … r”, “deleteShare”, OC\AppFramew … {}, { id: “99”,_ … "})
  13. <>OC\AppFramework\Routing\RouteActionHandler->_invoke({ id: “99”, … "})
  14. /usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:call_user_func(OC\AppFramew … {}, { id: “99”,_ … "})
  15. /usr/share/nginx/nextcloud/ocs/v1.php - line 82:OC\Route\Router->match("/ocsapp/app … 9")
  16. /usr/share/nginx/nextcloud/ocs/v2.php - line 24:require_once("/usr/share/ … p")

Hi Volker,

The Maps app is interfering with the sharing API in a bad way right now. I opened an issue on Github for that already:

There is a fix already and it should be shipped with the next release of the Maps app:

Until then, you can avoid these issues by disabling Maps.

If you use federated shares, I would like to make you aware of this issue as well:

Hello Schmu,

thank you very much for your answer and sorry for my late reply.

It seems working fine now.

Best regards,
Volker

1 Like