Open JMoVS opened 2 years ago
Do you have some logs?
which logs are you specifically looking for? Normal server logs?
this is what is shown then in the logs:
{"reqId":"HjIHsLFPRA8eDcTm9Cmm","level":4,"time":"2022-10-20T07:09:26+00:00","remoteAddr":"<remoteIPredacted>","user":"UserA","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/UserA/","message":"OCP\\Files\\NotFoundException: /Groupfolderroot/Company Strategy/Internal/People/Employees/Interns/USERB not found while trying to get owner","userAgent":"Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"24.0.6.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"OCP\\Files\\NotFoundException: /Groupfolderroot/Company Strategy/Internal/People/Employees/Interns/USERB not found while trying to get owner","Code":0,"Trace":[{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":180,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMethod:PROPFIND",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":166,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/Auth.php","Line":161,"CustomMessage":"--"},"id":"6350f58036d6e"}
{"reqId":"HjIHsLFPRA8eDcTm9Cmm","level":3,"time":"2022-10-20T07:09:26+00:00","remoteAddr":"<remoteIPredacted>","user":"UserA","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/UserA/","message":"/Groupfolderroot/Company Strategy/Internal/People/Employees/Interns/USERB not found while trying to get owner","userAgent":"Mozilla/5.0 (Windows) mirall/3.6.0stable-Win64 (build 20220906) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"24.0.6.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"/Groupfolderroot/Company Strategy/Internal/People/Employees/Interns/USERB not found while trying to get owner","Code":0,"Trace":[{"file":"/var/www/html/apps/activity/lib/FilesHooks.php","line":1128,"function":"getOwner","class":"OC\\Files\\View","type":"->","args":["/Groupfolderroot/Company Strategy/Internal/People/Employees/Interns/USERB"]},{"file":"/var/www/html/apps/activity/lib/FilesHooks.php","line":892,"function":"shareNotificationForOriginalOwners","class":"OCA\\Activity\\FilesHooks","type":"->","args":["*** sensitive parameters replaced ***","self_unshared_by","*** sensitive parameters replaced ***",387047,"folder"]},{"file":"/var/www/html/apps/activity/lib/FilesHooks.php","line":849,"function":"selfUnshareFromUser","class":"OCA\\Activity\\FilesHooks","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/var/www/html/apps/activity/lib/FilesHooks.php","line":816,"function":"unshareFromUser","class":"OCA\\Activity\\FilesHooks","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/var/www/html/apps/activity/lib/FilesHooksStatic.php","line":105,"function":"unShare","class":"OCA\\Activity\\FilesHooks","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":264,"function":"unShare","class":"OCA\\Activity\\FilesHooksStatic","type":"::","args":[{"__class__":"OC\\EventDispatcher\\GenericEventWrapper"},"OCP\\Share::preUnshare",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":239,"function":"doDispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"}],"OCP\\Share::preUnshare",{"__class__":"OC\\EventDispatcher\\GenericEventWrapper"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"}],"OCP\\Share::preUnshare",{"__class__":"OC\\EventDispatcher\\GenericEventWrapper"}]},{"file":"/var/www/html/lib/private/EventDispatcher/SymfonyAdapter.php","line":122,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OC\\EventDispatcher\\GenericEventWrapper"},"OCP\\Share::preUnshare"]},{"file":"/var/www/html/lib/private/Share20/Manager.php","line":1232,"function":"dispatch","class":"OC\\EventDispatcher\\SymfonyAdapter","type":"->","args":["OCP\\Share::preUnshare",{"__class__":"Symfony\\Component\\EventDispatcher\\GenericEvent"}]},{"file":"/var/www/html/lib/private/Share20/Manager.php","line":1556,"function":"deleteShare","class":"OC\\Share20\\Manager","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/var/www/html/lib/private/Share20/Manager.php","line":1411,"function":"checkExpireDate","class":"OC\\Share20\\Manager","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/var/www/html/apps/files_sharing/lib/MountProvider.php","line":95,"function":"getSharedWith","class":"OC\\Share20\\Manager","type":"->","args":["*** sensitive parameters replaced ***",0,null,-1]},{"file":"/var/www/html/lib/private/Files/Config/MountProviderCollection.php","line":134,"function":"getMountsForUser","class":"OCA\\Files_Sharing\\MountProvider","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Storage\\StorageFactory"}]},{"file":"/var/www/html/lib/private/Files/SetupManager.php","line":225,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Mount\\Manager"},{"__class__":"Closure"}]},{"file":"/var/www/html/lib/private/Files/SetupManager.php","line":317,"function":"OC\\Files\\{closure}","class":"OC\\Files\\SetupManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/SetupManager.php","line":226,"function":"setupForUserWith","class":"OC\\Files\\SetupManager","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"Closure"}]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":111,"function":"setupForUser","class":"OC\\Files\\SetupManager","type":"->","args":[{"__class__":"OC\\User\\User"}]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Auth.php","line":123,"function":"setupFS","class":"OC_Util","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":103,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Auth.php","line":251,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Auth.php","line":154,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":180,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMethod:PROPFIND",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":166,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/View.php","Line":1698,"CustomMessage":"--"},"id":"6350f58036f81"}
⚠️ This issue respects the following points: ⚠️
Bug description
We have a group folder ("DirA") to which User A has access using the group folder permissions. On a subdirectory (let's call it "DirA/B"), User A doesn't have access as the group folder permissions on that subdirectory don't allow access. However, we then give access to the subdirectory of this non-shared folder via the nextcloud sharing option for internal users, so to say to "DirA/B/X".
The bug is that when the nextcloud sharing expires on the directory X, the whole files app stops working and instead only returns an "internal server error" all the time, until someone reshared directory X with the User. If the share is manually removed, the bug doesn't occur. Only on auto-expiration based on the date, there's this issue.
Steps to reproduce
Expected behavior
Auto-expiry of shares should not lead to Files app not working anymore
Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response