Skip to content

Deletion does not work in nextcloud 27 #1734

Description

@GVLLIFESTYLE

nc server: 27.0.0
cookbook:

error when trying to delete

{"reqId":"OC2iPUMMNszkvqxH3SaH","level":3,"time":"2023-06-21T06:15:22+00:00","remoteAddr":"ANONYM","user":"ANONYM","app":"index","method":"DELETE","url":"/nextcloud/index.php/apps/cookbook/webapp/recipes/6226491","message":"OC\\Files\\Cache\\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\\Files\\Node\\Root, OC\\Files\\Node\\LazyRoot given, called in /var/www/nextcloud/lib/private/Files/Node/Folder.php on line 238 in file '/var/www/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php' line 201","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.0.8","exception":{"Exception":"Exception","Message":"OC\\Files\\Cache\\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\\Files\\Node\\Root, OC\\Files\\Node\\LazyRoot given, called in /var/www/nextcloud/lib/private/Files/Node/Folder.php on line 238 in file '/var/www/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php' line 201","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1064,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":169,"Previous":{"Exception":"TypeError","Message":"OC\\Files\\Cache\\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\\Files\\Node\\Root, OC\\Files\\Node\\LazyRoot given, called in /var/www/nextcloud/lib/private/Files/Node/Folder.php on line 238","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":238,"function":"getCachesAndMountPointsForSearch","class":"OC\\Files\\Cache\\QuerySearchHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":292,"function":"search","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/music/lib/Utility/Scanner.php","line":383,"function":"searchByMime","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/music/lib/Hooks/FileHooks.php","line":42,"function":"deleteFolder","class":"OCA\\Music\\Utility\\Scanner","type":"->"},{"function":"deleted","class":"OCA\\Music\\Hooks\\FileHooks","type":"::"},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":105,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":40,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":143,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":73,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":101,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":145,"function":"emit","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"delete","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1252,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1126,"function":"runHooks","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":321,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":364,"function":"rmdir","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/cookbook/lib/Service/RecipeService.php","line":188,"function":"delete","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/cookbook/lib/Controller/Implementation/RecipeImplementation.php","line":166,"function":"deleteRecipe","class":"OCA\\Cookbook\\Service\\RecipeService","type":"->"},{"file":"/var/www/nextcloud/apps/cookbook/lib/Controller/RecipeController.php","line":68,"function":"destroy","class":"OCA\\Cookbook\\Controller\\Implementation\\RecipeImplementation","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"destroy","class":"OCA\\Cookbook\\Controller\\RecipeController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1064,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php","Line":201},"CustomMessage":"--"},"id":"6492957ad2ee0"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThe PR/issue is marked as stalestalebot-enabledThe PR/issue is marked to go stale over time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions