nextcloud / nextcloud/desktop

[Bug]: Windows Desktop client upload large files twice

Open
#9,278 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
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

When using Nextcloud desktop client 3.17.4 or 4.0.4 + server 32.0.3 + Clamav, files larger than 2gb or so, the client upload the files twice, but there's no file duplication. I observed these steps:

- New file is added to synced folder
- Client analyze the file
- Client starts chunck upload, which can be seen on user upload folder
- Client finishes upload
- Server pass files to Clamav to scan
- Clamav finishes scan
- Server finishes mounting file
- Client starts new syncing
- Client uploads the same file again (I can see new folder inside user uploads)
- Client finishes syncing

If I restart nextcloud client after server finishes mount the final, the last steps aren't executed and it says it's synced. It's seems while files being scanned the client thinks it needs to upload again, idk

### Steps to reproduce

- New file is added to synced folder
- Client analyze the file
- Client starts chunck upload, which can be seen on user upload folder
- Client finishes upload
- Server pass files to Clamav to scan
- Clamav finishes scan
- Server finishes mounting file
- Client starts new syncing
- Client uploads the same file again (I can see new folder inside user uploads)
- Client finishes syncing

### Expected behavior

After file scan and finishes mounting it should not trigger another upload

### Which files are affected by this bug

demo.mkv

### Operating system

Windows

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

Windows 11

### Package

Official Windows MSI

### Nextcloud Server version

32.0.3

### Nextcloud Desktop Client version

3.17.4

### 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
- [ ] LDAP/ Active Directory
- [x] 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.