groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

`NotFoundException` with File Versions while moving file from personal space to group folder

Open andreaskoelsch opened this issue 1 year ago โ€ข 1 comments

When using group folders in combination with the Versions plugin, I get NotFoundExceptions in the logs whenever I move a file from personal space to a group folder. In this case, admin is the user group of the user moving the file.

This bug was introduced with the latest update to NC29. Not sure if this bug is right here or is rather related to the versions plugin or nextcloud itself.

How to use GitHub

  • Please use the ๐Ÿ‘ reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a group folder
  2. Move file from personal space to group folder
  3. Check log

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system: Debian 12

Database: MariaDB 10.11.6

PHP version: 8.2

Nextcloud version: 29.0.0

Group folders version: 17.0.0

Updated from an older Nextcloud/ownCloud or fresh install: Update 28->29

Are you using external storage, if yes which one: nextcloud-data is on nfs. Not using external storage plugins

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Logs

image

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"U9pzBJXuYC9UTLCDIkt3","level":3,"time":"2024-05-23T13:55:03+02:00","remoteAddr":"192.168.0.115","user":"andreas","app":"no app in context","method":"MOVE","url":"/remote.php/dav/files/andreas/2024/2024-04-23%2009.29.31.jpg","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.0.19","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/admin/files_versions","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":161,"function":"get","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Versions/LegacyVersionsBackend.php","line":373,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/VersionStorageMoveListener.php","line":143,"function":"clearVersionsForFile","class":"OCA\\Files_Versions\\Versions\\LegacyVersionsBackend","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/VersionStorageMoveListener.php","line":116,"function":"handleMoveOrCopy","class":"OCA\\Files_Versions\\Listener\\VersionStorageMoveListener","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/VersionStorageMoveListener.php","line":88,"function":"recursivelyHandleMoveOrCopy","class":"OCA\\Files_Versions\\Listener\\VersionStorageMoveListener","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Files_Versions\\Listener\\VersionStorageMoveListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":188,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":105,"function":"postRename","class":"OC\\Files\\Node\\HookConnector","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":841,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":454,"function":"rename","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":178,"function":"moveInto","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":612,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":374,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":212,"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}

andreaskoelsch avatar May 23 '24 12:05 andreaskoelsch

Presumably related to #2910, but not able to look at it at the moment (mobile at the moment).

joshtrichards avatar Sep 12 '24 19:09 joshtrichards