# Bug NEX-582 - Nextcloud: When creating an AMPF folder fails, other folders are also not created

Project: Stream Nextcloud app "OpenProject Integration"
Status: closed
URL: https://community.openproject.org/work_packages/NEX-582

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Nextcloud App - OpenProject integration |
| Target versions | 17.2.1 |
| Observed in versions | 17.1.0 |
| Bug found in version (deprecated) | 17.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Jan Sandbrink |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### 

### 

### Preconditions:

  - Nextcloud storage configured in OpenProject

  - OP user is a member of a Project and a Project Admin

  - **For an unrelated project the folder creation fails already** (as indicated by storage error messages for AMPF)

### Steps to reproduce

1.  Login to the OP

2.  Go to the project where this user a Project Admin

3.  Go to Project Settings - Files

4.  Configure new AMPF storage for Nextcloud

### What is the buggy behavior?

After configuring Nextcloud storage it is expected that a Folder with the Project name is created in Nextcloud. But it is NOT created so it blocks uploading files.

### What is the expected behavior?

*After setting AMPF Nextcloud storage, Project folder is created*

### 

<br>

### **Logs**

*When user tries to upload a file the following request is performed*

curl '<https://qa.openproject-stage.com/undefined&#39>;  
\--compressed  
\-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0'  
\-H 'Accept: application/json, text/plain, /'  
\-H 'Accept-Language: en-US,en;q=0.9'  
\-H 'Accept-Encoding: gzip, deflate, br, zstd'  
\-H 'Referer: <https://qa.openproject-stage.com/projects/ihor/work\_packages/11154/files&#39>;  
\-H 'X-Requested-With: XMLHttpRequest' \\

\-H 'Sec-GPC: 1'  
\-H 'Connection: keep-alive'  
\-H 'Cookie:  
\-H 'Sec-Fetch-Dest: empty'  
\-H 'Sec-Fetch-Mode: cors'  
\-H 'Sec-Fetch-Site: same-origin'  
\-H 'TE: trailers'

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/919625/content">

Folder for project Ihor AMPF was not created:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/919626/content">

<br>

### Environment information

<br>

**OpenProject installation type**

<https://qa.openproject-stage.com/>

[https://nextcloud.openproject-stage.eu](https://nextcloud.openproject-stage.eu/)

<br>

**OpenProject version**

*17.2.0*

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*English*
