Content
View differences
Updated by Dominic Bräunlein almost 2 years ago
Released in: OP 14.2
### Steps to reproduce
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?
* 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?
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
**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
### Steps to reproduce
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?
* 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?
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
**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