nextcloud / nextcloud/desktop

[Bug]: Folders deleted on Desktop Client are never deleted on the server with E2EE enabled - inconsistent sync state

Open
#5,918 17 comments 1 reaction 0 assignees View on GitHub
0. Needs triage feature: :lock: end to end encryption
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

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

Folders deleted on a Windows endpoint are only deleted locally, but never on the NC server as long as E2EE is activated in the Desktop Client.

It is for sure a leftover from https://github.com/nextcloud/desktop/issues/5564 where all that mess started.

Once E2EE is disabled (in the Desktop client itself), all previous performed deletions are performed instantly, so the "folder deletion queue" is being emptied. On the server they are removed, also the activity app confirms this.

### Steps to reproduce

1. Enable E2EE (install app, activate on the Desktop client)
2. Create a folder (no matter if done on the web, another endpoint like iOS/Android client or the same Desktop Client, also doesn't matter if inside or outside an E2EE folder - right, **it also affects folders outside of E2EE folders!**)
3. Make sure the created folder exists on the server, maybe additonally check activity app
4. Delete a folder on the endpoint with Desktop client

### Expected behavior

The folder is deleted locally and on the server.

### Which files are affected by this bug

Every (!) folder, no matter if empty or not

### Operating system

Windows

### Which version of the operating system you are running.

Windows 10

### Package

Appimage

### Nextcloud Server version

27.0.1.2

### Nextcloud Desktop Client version

3.9.0

### Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

### Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

### Are you using an external user-backend?

- [X] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other

### Nextcloud Server logs

```shell
Nothing in logs.
```

### Additional info

- https://github.com/nextcloud/desktop/issues/5564
- Deletion of folders using other endpoints (the web interface, iOS client, Android client, ...) works without any issue, instantly.
- Creation, renaming and moving folders is synced fine. It's "just" that deletion... which produces very very VERY **confusing inconsinstent states** over time, depending on the usage of NC very quickly.
- Additionally (probably a 2nd issue or a variant of this one): folders INSIDE an E2EE folder which are deleted (e. g. using the iOS client), are not deleted on the Desktop client endpoint. E2EE is just a complete mess... 🙄🙄🙄

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.