Content
View differences
Updated by Jan Sandbrink 6 months ago
### Steps to reproduce
1. Enable `Enforce Windows compatibility` in Nextcloud (https://nextcloud.example.com/index.php/settings/admin)
2. Create a Project with the following name `Test: Nextcloud1`
3. Enable Nextcloud storage in the project with automatic managed folders
<br>
### What is the buggy behavior?
* OpenProject try to create a folder that includes the `:` character
* The colon is not allowed on Windows systems
### What is the expected behavior?
1. If Nextcloud enforces windows compatibility, the invalid characters need to be replaced
2. The folder gets created in Nextcloud
###
### **Logs**
<br>
```text
Sep _Sep 02 11:49:26 debian openproject[658]: openproject\[658\]: E, [2025-09-02T11:49:26.598518 #658] \[2025-09-02T11:49:26.598518 #658\] ERROR -- : [ActiveJob] [Storages::AutomaticallyManagedStorageSyncJob] [5257deef-9933-4931-86ef-1b39dce434cd] [Storages::ManagedFolderSyncService] [storage-1] [Storages::NextcloudManagedFolderCreateService] [storage-1] {folder_name: "/OpenProject/Test: \[ActiveJob\] \[Storages::AutomaticallyManagedStorageSyncJob\] \[5257deef-9933-4931-86ef-1b39dce434cd\] \[Storages::ManagedFolderSyncService\] \[storage-1\] \[Storages::NextcloudManagedFolderCreateService\] \[storage-1\] {folder\_name: "/OpenProject/Test: Nextcloud1 (95)/", parent_location: "/", error_code: (95)/", parent\_location: "/", error\_code: :error, data: {status: 400, body: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\" xmlns:o=\"http://owncloud.org/ns\">\n <s:exception>OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath</s:exception>\n <s:message>\":\" "<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n<d:error xmlns:d=\\"DAV:\\" xmlns:s=\\"http://sabredav.org/ns\\" xmlns:o=\\"http://owncloud.org/ns\\">\\n <s:exception>OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\InvalidPath</s:exception>\\n <s:message>\\":\\" is not allowed inside a file or folder name.</s:message>\n <o:retry xmlns:o=\"o:\">false</o:retry>\n <o:reason xmlns:o=\"o:\">\":\" name.</s:message>\\n <o:retry xmlns:o=\\"o:\\">false</o:retry>\\n <o:reason xmlns:o=\\"o:\\">\\":\\" is not allowed inside a file or folder name.</o:reason>\n</d:error>\n"}}
``` name.</o:reason>\\n</d:error>\\n"}}_
###
1. Enable `Enforce Windows compatibility` in Nextcloud (https://nextcloud.example.com/index.php/settings/admin)
2. Create a Project with the following name `Test: Nextcloud1`
3. Enable Nextcloud storage in the project with automatic managed folders
<br>
### What is the buggy behavior?
* OpenProject try to create a folder that includes the `:` character
* The colon is not allowed on Windows systems
### What is the expected behavior?
1. If Nextcloud enforces windows compatibility, the invalid characters need to be replaced
2. The folder gets created in Nextcloud
###
### **Logs**
<br>
```text
Sep
```
###