Content
View differences
Updated by Nabin Ale over 1 year ago
## **Description**:
While running the `integration_setup.sh` script to integrate OpenProject with Nextcloud, an error occurs when attempting to create the file storage. The script fails because OpenProject returns the error: `'Name has already been taken.'` indicating the storage name `'nextcloud'` already exists
## **Steps **Steps to reproduce:**
_NOTE: need to setup openproject and annd nextcloud with integration\_openproject apps_
Run following commands on path nextcloud/aps/integration\_openproject twice
```console
SETUP_PROJECT_FOLDER=true NEXTCLOUD_HOST=http://localhost/stable30 OPENPROJECT_HOST=http://localhost:3000 OP_ADMIN_USERNAME=apiadmin OP_ADMIN_PASSWORD=apiadmin NC_ADMIN_USERNAME=admin NC_ADMIN_PASSWORD=admin OPENPROJECT_STORAGE_NAME=nextcloud bash integration_setup.sh
``` \`\`\`bash
**Expected SETUP\_PROJECT\_FOLDER=true NEXTCLOUD\_HOST=http://localhost/stable30 OPENPROJECT\_HOST=http://localhost:3000 OP\_ADMIN\_USERNAME=apiadmin OP\_ADMIN\_PASSWORD=apiadmin NC\_ADMIN\_USERNAME=admin NC\_ADMIN\_PASSWORD=admin OPENPROJECT\_STORAGE\_NAME=nextcloud bash integration\_setup.sh
\`\`\`
Expected to have message:** message:
```console
\`\`\`bash
Using default temp dir: ./temp
Creating file storage name "nextcloud" "nextcloud" in OpenProject was successful.
Setting up OpenProject OAUTH configuration in Nextcloud was successful.
Setting up Nextcloud OAUTH configuration in OpenProject was successful.
Saving 'OpenProject' 'OpenProject' user application password to OpenProject was successful.
Setup of OpenProject and Nextcloud is complete.
```
**Actual \`\`\`
Actual Error occurs:** occurs:
```console
\`\`\`bash
Using default temp dir: ./temp
Unhandled error while creating the file storage 'nextcloud'
'nextcloud'
OpenProject returned the following error: 'Name 'Name has already been taken.'
taken.'
You could try deleting the file storage 'nextcloud' 'nextcloud' in OpenProject and run the script again.
```
\`\`\`
While running the `integration_setup.sh` script to integrate OpenProject with Nextcloud, an error occurs when attempting to create the file storage. The script fails because OpenProject returns the error: `'Name has already been taken.'` indicating the storage name `'nextcloud'` already exists
## **Steps
_NOTE: need to setup openproject and
Run following commands on path nextcloud/aps/integration\_openproject twice
```console
SETUP_PROJECT_FOLDER=true NEXTCLOUD_HOST=http://localhost/stable30 OPENPROJECT_HOST=http://localhost:3000 OP_ADMIN_USERNAME=apiadmin OP_ADMIN_PASSWORD=apiadmin NC_ADMIN_USERNAME=admin NC_ADMIN_PASSWORD=admin OPENPROJECT_STORAGE_NAME=nextcloud bash integration_setup.sh
```
**Expected
\`\`\`
Expected
```console
```
**Actual
Actual
```console
```
\`\`\`