Content
View differences
Updated by Wieland Lindenthal almost 2 years ago
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Set up SharePoint integration with automatic folder creation per project
2. Create a Project that contains an & (ampersand) in the name.
3. Enable FIle Storage / SharePoint integration with "**New folder with automatically managed permissions"**
4. Try to access the folder via the OpenProject interface (upload, add existing file)
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* When using the file picker with SharePoint, and trying to access a folder with an & in the name, OpenProject returns an error that it could not access the folder. Likely, because the & is not encoded properly when using Microsoft's API.
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. User can navigate through the OP file picker for SharePoint without issues
### **Logs**
```json
file-picker-base-modal.component.ts:117
GET https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78) 500 (Internal Server Error)
zone.js:162
Uncaught:
{
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 500,
"statusText": "OK",
"url": "https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78)",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78): 500 OK",
"error": {
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:OutboundRequest:NotFound",
"message": "An outbound request to another resource has failed with status code 404."
}
}
```
### Screenshots and other files
_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/106723/content">_
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
English _English_
2. Create a Project that contains an & (ampersand) in the name.
3. Enable FIle Storage / SharePoint integration with "**New folder with automatically managed permissions"**
4. Try to access the folder via the OpenProject interface (upload, add existing file)
### What is the buggy behavior?
### What is the expected behavior?
### **Logs**
```json
file-picker-base-modal.component.ts:117
GET https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78) 500 (Internal Server Error)
zone.js:162
Uncaught:
{
"headers": {
"normalizedNames": {},
"lazyUpdate": null
},
"status": 500,
"statusText": "OK",
"url": "https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78)",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for https://temple.openproject.com/api/v3/storages/1/files?parent=/Intake%20&%20Governance%20(78): 500 OK",
"error": {
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:OutboundRequest:NotFound",
"message": "An outbound request to another resource has failed with status code 404."
}
}
```
### Screenshots and other files
_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/106723/content">_
### Environment information
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
English