# Bug NEX-366 - "OpenProject Integration" randomly deactivates automatically managed folders

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | Nextcloud Integration 2.7.0 |
| Observed in versions | Nextcloud Integration 2.6.0 |
| Bug found in version (deprecated) | Nextcloud Integration 2.6.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Artur Neumann |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

**Description**

  - The main reason for the random deactivation of the Automatically managed project folder seems to be happening because the special user "OpenProject" was logged in and the password for that user was changed which deleted the application password for that user. In addition to that, as of now we generate temporary application password for user "OpenProject" which also gets deleted when the user "OpenProject" password is changed.

  - This WP fixes the random deactivation of the Automatically managed project folder.

### Steps to reproduce

1.  Log into Nextcloud as "OpenProject" user
    
    1.  If you don't have the password you can log in with any admin account and change the password of the user OpenProject

2.  Go to "Settings" -\> "Security"

3.  Change the password of OpenProject user while being logged in as OpenProject user

### What is the buggy behavior?

1.  **Non permanent app password for the OpenProject connection**  
    <img class="op-uc-image op-uc-image_inline" src="/attachments/191061/Screenshot_2024-09-04_at_18.38.59.png">

2.  **App password got deleted after the OpenProject user changed it's own password**

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/attachments/191062/Screenshot_2024-09-04_at_18.39.18.png"></div></figure>

### What is the expected behavior?

1.  **Permanent app password for the OpenProject connection** <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/190564/content">

2.  **App password does not get deleted after the OpenProject user changed it's own password**

###
