# Feature OP-15675 - Add to connection validation that managed directory is empty for Nextcloud storages

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15675

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 14.6.0 |
| Sprint | 14.6.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-15881 | Bug | Nextcloud connection validation fails on disabled AMPF configuration | closed |  | 14.6.0 |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Cécile Guiot |
| Product manager |  |
| Feature Lead |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an administrator responsible for storages  
**I want to** get a warning when a Nextcloud storage has pre-existing folders that could prevent project folders to be created automatically  
**so that** I can delete the blocking folders from Nextcloud

**Acceptance criteria**

*   When the user clicks &quot;Recheck connection&quot; the OpenProject folder on Nextcloud will be analysed for unexpected folders.
    
*   If unexpected content is found, return a warning to the user: &nbsp;WRN\_UNEXPECTED\_CONTENT
    
*   The validation test only applies for storages that have AMPF enabled. Storages without AMPF skip this validation test.
    
*   ~~The warning links to the description in the documentation (https://www.openproject.org/docs/system-admin-guide/files/external-file-storages/health-status/#connection-validation-for-nextcloud)~~
    
*   The warning is documented in the linked table of the documentation
    
*   If the group folder cannot be found at the remote storage, return an error to the user: ERR\_GROUP\_FOLDER\_NOT\_FOUND
    
*   If the app password is badly configured, retun an error to the user: ERR\_USERLESS\_ACCESS\_DENIED
    
    *   This can happen, if an nextcloud admin resets the already configured app password on their side
