Content
View differences
Updated by Sajan Gurung 10 days ago
### Steps to reproduce
1\. Setup integration with project folder
```text
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
"values":{
"openproject_instance_url": "https://openproject.local",
"openproject_client_id": "client-id",
"openproject_client_secret": "client-sec",
"setup_project_folder": true,
"setup_app_password": true,
"default_enable_navigation": false,
"default_enable_unified_search": false
}
}' \
-u admin:admin
```
2\. Reset the integration setup from webUI (DO NOT delete OpenProject project folder, user and groups)
3\. Setup integration with PATCH
```text
curl -XPATCH 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
"values":{
"openproject_instance_url": "https://openproject.local",
"openproject_client_id": "client-id",
"openproject_client_secret": "client-sec",
"setup_project_folder": false,
"setup_app_password": true
}
}' \
-u admin:admin
```
4\. Check the admin config status by:
```bash
curl -s -XGET -uadmin:admin https://nextcloud.local/index.php/apps/integration_openproject/check-admin-config
```
<br>
### What is the buggy behavior?
we get response:
```json
{"config_status_without_project_folder":false,"project_folder_setup_status":true}
```
<br>
### What is the expected behavior?
response should be
```json
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
<br>
### Environment information
integration\_openproject 3.1 and nextcloud 34
**OpenProject installation type**
* Docker-compose installation
**Browser**
* [x] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [ ] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [x] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
1\. Setup integration with project folder
```text
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-d'{
"values":{
"openproject_instance_url": "https://openproject.local",
"openproject_client_id": "client-id",
"openproject_client_secret": "client-sec",
"setup_project_folder": true,
"setup_app_password": true,
"default_enable_navigation": false,
"default_enable_unified_search": false
}
}' \
-u admin:admin
```
2\. Reset the integration setup from webUI (DO NOT delete OpenProject project folder, user and groups)
3\. Setup integration with PATCH
curl -XPATCH 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \
-H'Content-Type: application/json' \
-d'{
"values":{
"openproject_instance_url": "https://openproject.local",
"openproject_client_id": "client-id",
"openproject_client_secret": "client-sec",
"setup_project_folder": false,
"setup_app_password": true
}
}' \
-u admin:admin
```
4\. Check the admin config status by:
```bash
curl -s -XGET -uadmin:admin https://nextcloud.local/index.php/apps/integration_openproject/check-admin-config
```
<br>
### What is the buggy behavior?
we get response:
```json
{"config_status_without_project_folder":false,"project_folder_setup_status":true}
```
<br>
### What is the expected behavior?
response should be
```json
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
<br>
### Environment information
integration\_openproject 3.1 and nextcloud 34
**OpenProject installation type**
* Docker-compose installation
**Browser**
* [x] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [ ] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [x] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._