[Bug]: Temporary files break desktop app file synchronization
- 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
Temporary files (starting with special character) breaks file sinchronization on Windows client app when VFS is enabled
This issue appears to be related to [#4410
](https://github.com/nextcloud/desktop/issues/4410) and https://github.com/nextcloud/desktop/issues/4246
### Steps to reproduce
Steps to reproduce the behavior:
1. Enable VFS and have Nextcloud syncing your local directories
2. Trigger the creation of temporary files on one of those folders. For example open an Excel file and start editing it
3. Edit the file but don't save it, to trigger the temporary file creation
4. The Nextcloud app will stop synchronizing files and from now only displays "Checking for folder changes"
### Expected behavior
A temporary file should not break file synchronization.
### Which files are affected by this bug
$CONTROLE DE FATURAMENTO BM07.xlsx
### Operating system
Windows
### Which version of the operating system you are running.
Windows 11
### Package
Official Windows MSI
### Nextcloud Server version
29.0.8
### Nextcloud Desktop Client version
3.15.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?
- [x] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
```shell
```
### Additional info
2025-01-16 11:32:05:583 [ warning nextcloud.sync.vfs.cfapi.wrapper C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\libsync\vfs\cfapi\cfapiwrapper.cpp:841 ]: Couldn't set pin state (4) for "C:\\Users\\Thiarles Porta\\Nextcloud\\Administrativo\\Contratos\\656.2023 - (XXXXX)\\BOLETINS DE MEDIÇÃO\\BM07 JUL-24\\~$CONTROLE DE FATURAMENTO BM07.xlsx" with recurse mode 1 : "Identificador inválido."
2025-01-16 11:32:05:583 [ warning nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\gui\folder.cpp:604 ]: Could not set pin state of "Administrativo/Contratos/656.2023 - (XXXXX)/BOLETINS DE MEDIÇÃO/BM07 JUL-24/~$CONTROLE DE FATURAMENTO BM07.xlsx" to excluded
[.....]
after this then we start seeing:
2025-01-16 11:37:12:506 [ warning nextcloud.gui.shellextensions.server C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\gui\shellextensionsserver.cpp:108 ]: Record not found in SyncJournal for: "Administrativo/Contratos/656.2023 - (XXXXX)/BOLETINS DE MEDIÇÃO/BM06 JUN-24/206_23_FARROUPILHA_SES_.pdf"
2025-01-16 11:37:12:506 [ warning nextcloud.gui.shellextensions.server C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\gui\shellextensionsserver.cpp:108 ]: Record not found in SyncJournal for: "Administrativo/Contratos/656.2023 - (XXXXX)/BOLETINS DE MEDIÇÃO/BM06 JUN-24/208_23_RIO_GRANDE_SES_.pdf"
2025-01-16 11:37:12:509 [ warning nextcloud.gui.shellextensions.server C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\gui\shellextensionsserver.cpp:108 ]: Record not found in SyncJournal for: "Administrativo/Contratos/656.2023 - (XXXXX)/BOLETINS DE MEDIÇÃO/BM06 JUN-24/206_23_FARROUPILHA_SES_.pdf"
[20250116_1046_nextcloud.log.5.zip](https://github.com/user-attachments/files/18481760/20250116_1046_nextcloud.log.5.zip)
Contributor guide
Assessment
This issue has not been assessed yet.