[Bug]: Read-only folder on server is not shown as read-only on Windows
- 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
If a folder on server side is marked as read-only, e.g. due to external share or resharing, then the synced folder is not marked as read-only (due to limitation of QT5), but only all files in this folder are read-only.
This leads to Windows creating temp files when opening a read-only Word document in the same folder, which then are (correctly) not synced.
### Steps to reproduce
1. mount an external storage with read-only
2. sync this folder to Windows
3. open a MS Word document from this folder
4. MS Word will create a temp copy as it cannot edit the original one
5. this copy is not being synced (correct), but kept all the time there (and shows an error)
### Expected behavior
Folder should be read-only, so that Windows will not create a temp file in it.
### Which files are affected by this bug
folder
### Operating system
Windows
### Which version of the operating system you are running.
Windows 10
### Package
Distro package manager
### Nextcloud Server version
25
### Nextcloud Desktop Client version
3.10.0
### 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
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
_No response_
### Additional info
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.