Content
View differences
Updated by Sajan Gurung 11 days ago
### Steps to reproduce
1\. - Setup integration integration_openproject with project folder
```text
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup' OAuth using script integration_setup.sh with SETUP_PROJECT_FOLDER=true
```bash
SETUP_PROJECT_FOLDER=true \
-H'Content-Type: application/json'
NEXTCLOUD_HOST=https://nextcloud.local/ \
-d'{
"values":{
"openproject_instance_url": "https://openproject.local", OPENPROJECT_HOST=https://openproject.local/ \
"openproject_client_id": "client-id", OP_ADMIN_USERNAME=admin \
"openproject_client_secret": "client-sec", OP_ADMIN_PASSWORD=admin \
"setup_project_folder": true, NC_ADMIN_USERNAME=admin \
"setup_app_password": true, NC_ADMIN_PASSWORD=admin \
"default_enable_navigation": false, OPENPROJECT_STORAGE_NAME=Nextcloud \
"default_enable_unified_search": false
} bash integration_setup.sh
```
}' \
-u admin:admin
```
2\. - Reset the integration setup from webUI (DO NOT and delete OpenProject project folder, user and groups)
3\. Setup integration with PATCH
```text the Nextcloud file storage
curl -XPATCH 'https://nextcloud.local/index.php/apps/integration_openproject/setup' \ - Repeat first step
-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
```
``` - Reload the browser if you are already in the url https://nextcloud.local/index.php/settings/admin/openproject or navigate to Administration Settings -> OpenProject
- Check the admin config status again
<br>
### What is the buggy behavior?
In first admin config status check, we get response:
```json
{"config_status_without_project_folder":false,"project_folder_setup_status":true}
```
In second try:
```json
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
<br>
### What is the expected behavior?
for first try too, response should be
```json
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
<br>
### Environment information
integration\_openproject
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\.
```text
curl -XPOST 'https://nextcloud.local/index.php/apps/integration_openproject/setup'
```bash
SETUP_PROJECT_FOLDER=true
-H'Content-Type: application/json'
NEXTCLOUD_HOST=https://nextcloud.local/
-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\.
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 again
<br>
### What is the buggy behavior?
In first admin config status check,
{"config_status_without_project_folder":false,"project_folder_setup_status":true}
```
```json
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
### What is the expected behavior?
for first try too,
{"config_status_without_project_folder":true,"project_folder_setup_status":true}
```
### Environment information
integration\_openproject
integration_openproject
**OpenProject installation type**
* Docker-compose installation
* [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._