# Bug OP-14292 - Users involved in work packages sharing are duplicated in project storage members list. 

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.3.0 |
| Observed in versions |  |
| Sprint | 13.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| 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.  Have a storage configured for a project.
2.  Share a work package with not a project member.
3.  Share another work package with the same non member.
4.  Go to `Project settings -> File storages` . Click on members for configured storage.
5.  See that non member is listed twice.

### What is the buggy behavior?

  - Users used in work package sharing feature are duplicated on project storage members page.

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  Users used in work package sharing feature are not listed at all on project storage members page.

### Note for developer

Problem seems to be here: <https://github.com/opf/openproject/blob/dev/modules/storages/app/controllers/storages/project_settings/project_storage_members_controller.rb#L42-L45.>  
We should not rely on number of memberships, but grab principals that have at least one membership.
