[Bug]: Windows local client access denied error when syncing - trying to remove empty folders locally using virtual nextcloud files
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 127
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a **bug**, not a question or a configuration issue.
- [X] This issue is **not** already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
Someone deletes a folder on the nextcloud server (or by sync with a client).
Now all other clients try to sync it downwards - trying to remove those folders everywhere.
But the syncing client shows an error with access denied for this folder.

The folder is located inside the users home folder and has all permissions set correctly - as windows reports this.
Permissions are set to inherit from base folders - and inheritance shows as beeing correct and not broken.

Trying to delete the folder manually fails, because extended rights are needed (in the users home folder ?)

Now resetting the Owner and the folder permissions from ground up for the whole nextcloud folder, allows to delete files manually with windows tools - but does not fix the client sync problem.

We are using virtual files - maybe there is a problem with multiple cascading levels of empty - non synced folder recursively ?
This problem reoccurs again and again - even on "fixed" computers after resetting the permission structure.
So its no permanent fix.
### Steps to reproduce
Please follow the description as above
### Expected behavior
If someone deletes a folder on client1, the folder should be removed on all other synced clients automatically without error messages, ....
### Which files are affected by this bug
empty folders
### Operating system
Windows
### Which version of the operating system you are running.
Windows 10 - latest / Windows 11 - latest
### Package
Official Windows MSI
### Nextcloud Server version
29.0.6
### Nextcloud Desktop Client version
3.13.3
### Is this bug present after an update or on a fresh install?
Fresh desktop client install
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### Are you using an external user-backend?
- [ ] Default internal user-backend
- [X] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
_No response_
### Additional info
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.