# Bug OP-14514 - OAuth flow causes loss of already selected option while adding a storage to a project

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.0.0 |
| Observed in versions | 13.3.0 |
| Sprint | 14.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Pavel Balashou |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Setup a storage successfully
2.  Do not go through the OAuth flow
3.  Add storage to a project
4.  While adding the storage select &quot;manual managed permissions&quot;
5.  Try to select a folder for the project folder
6.  This should trigger the OAuth flow
7.  After finishing the OAuth flow get redirected to the storage setup

### What is the buggy behavior?

*   The previously selected option is not selected anymore

### What is the expected behavior?

1.  &quot;manual managed permissions&quot; should be still activated

###   

### Screenshots and other files

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

### Environment information

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [x] Docker-compose installation
*   [ ] Other (please specify)

**Browser**

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