# Feature OP-13433 - Ensuring connection and permissions on project folder while redirecting users to Nextcloud/OneDrive from project menu.

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| OP-13663 | Implement /oauth_clients/:oauth_client_id/ensure_connection | Implementation | closed |  |  |  |
| OP-13664 | Implement redirect to project folder with waiting under /projects/:project_id/project_storages/:id/open | Implementation | closed | Pavel Balashou |  |  |
| OP-13754 | Add a timeout state to OpenProjectStorageModalComponent::Body. | Feature | closed | Pavel Balashou |  |  |

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-14408 | Bug | Waiting modal stuck on network error | closed |  | 14.0.0 |  |  |

## Technical Details

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

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| 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** a user opening/navigation to the storage from project menu  
**I want** the application to make sure I have granted OpenProject permissions to access a storage provider(OneDrive/Nextcloud) on my behalf   
**And** to make sure I am able to see a project folder before redirecting me to the storage   
**so that** I have smooth experience with OpenProject storage integration in the current moment and later(no need to grant access later)

**Acceptance criteria**

*   In case a user has no permissions to access a project folder (for instance, due to the Nextcloud synchronization delay happening in the background) there is a waiting modal. And the redirect happens after the user gets permissions set.
*   All links to storages in a project menu have the following format: [_**https://openproject.local/oauth\_clients/4262df2b-77bb-49c2-a5df-28355da676d2/ensure\_connection?destination\_url=https%3A%2F%2Fopenproject.local%2Fprojects%2Fdev-large%2Fproject\_storages%2F75%2Fopen&amp;storage\_id=25**_](https://openproject.local/oauth_clients/4262df2b-77bb-49c2-a5df-28355da676d2/ensure_connection?destination_url=https%3A%2F%2Fopenproject.local%2Fprojects%2Fdev-large%2Fproject_storages%2F75%2Fopen&storage_id=25)
    *   go through the **ensure\_connection** route
    *   has a **destination\_url** parameter as `[openproject_host]/project/[project_identifier]/project_storages/[project_storage_id]/open`
*   The waiting modal behavior is triggered only if a storage has been configured in automatic mode for a project.
*   If project folder mode is inactive then there is no waiting and redirect to the storage root happens right away.
*   If project folder mode is manual then there is no waiting and redirect to the project folder happens right away.

Modal designs: https://www.figma.com/file/gtLQfPe09X7XugAH8L7dTy/File-Storages-Integration?type=design&amp;node-id=4825-111390&amp;mode=design&amp;t=FTHVfbC7RAmRW9VY-0
