-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occ files:scan
scans the same group folders for every user
#3278
Comments
I can confirm this behavior on NC 24.0.1 and group folders 12 |
it should be possible to extend this logic to also include group folder https://github.com/nextcloud/server/blob/master/lib/private/Files/Utils/Scanner.php#L225 and change the class name to the one of group folder storage, make sure to use a string as class name for the cases where the app is not enabled PR welcome |
This sounds like a feature request to me to not include group folders in the scan |
occ files:scan
scans the same group folders for every user
I think the solution would not be to exclude group folders from the scan, but to include those properly. As the OP says, "group folders should be scanned separately", ie as they are in the file system: separated folders. IMO this kind of behavior is symptomatic of how the group folders tend to be treated in part of the NC ecosystem: as a second-class object, not entirely integrated into the usual files processes. Another example: nextcloud/desktop#1967 : desktop client considers group folders as external storage |
Thanks for transferring @joshtrichards, this makes perfect sense to fix! |
Bug description
I have noticed that running occ: files:scan includes whatever group folders the user is a member of as well.
This makes for incredibly slow scanning, especially if you have 30+ users and use the --all option. The same group folders are scanned over 30 times.
Steps to reproduce
Expected behavior
Group folders should be scanned separately to avoid the files:scan --all command scanning the same files over and over.
Installation method
No response
Operating system
No response
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?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: