nextcloud / nextcloud/desktop

[Bug]: Move to Trash Feature Not Working in Nextcloud Client on Ubuntu 22.04/24.04 (v3.17.0daily & v3.16) - Files Permanently Deleted

Open
#8,574 10 comments 0 reactions 1 assignee Claimed by @mgallien View on GitHub
stale
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

The moveToTrash feature in the Nextcloud client (versions 3.17.0daily and 3.16) on Ubuntu 22.04 and 24.04 is not functioning as expected. Instead of moving files to trash, files are permanently deleted when attempting to delete them.

### Steps to reproduce

1. Install the Nextcloud client (version 3.17.0daily or 3.16) on Ubuntu 22.04 or 24.04.
2. Activate the move to trash option in the Nextcloud client settings.
3. Sync your Nextcloud account with the client.
4. Delete a file from the Nextcloud web interface or another device (e.g., mobile app, tablet, or another computer).
5. Sync the client and observe that the deleted file does not appear in the trash, and is instead permanently deleted.

### Expected behavior

When a file is deleted from the Nextcloud web interface or another device, it should appear in the trash on the client side and not be permanently deleted.

### Which files are affected by this bug

All files, regardless of the method of deletion (web interface, other devices, or client), are affected by this bug

### Operating system

Linux

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

Ubuntu 22.04 / 24.04

### Package

Distro package manager

### Nextcloud Server version

31.0.7

### Nextcloud Desktop Client version

3.17.0daily (Ubuntu)

### 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 Disabled

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

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

### Nextcloud Server logs

```shell

```

### 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.