nextcloud / nextcloud/desktop

[Bug]: Windows local client access denied error when syncing - trying to remove empty folders locally using virtual nextcloud files

Open
#7,100 3 comments 2 reactions 0 assignees View on GitHub
0. Needs triage
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.
![image](https://github.com/user-attachments/assets/73bbafaf-5b09-4b1f-b0e5-d7f0fbe886ae)

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.
![image](https://github.com/user-attachments/assets/63b664f4-2d12-4083-ae91-c288ffe35127)

Trying to delete the folder manually fails, because extended rights are needed (in the users home folder ?)
![image](https://github.com/user-attachments/assets/95ee6db0-32e6-4ba4-8bc9-0d8537fb0799)

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.
![image](https://github.com/user-attachments/assets/da7692ae-fb2f-461d-8b5a-a273c1596478)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.