# Bug OP-18544 - More resources do not properly validate name uniqueness on the database level

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.0.0 |
| Observed in versions | 16.6.0 |
| Sprint | 17.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.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 |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Affected resources

*   Custom Fields
    
*   Webhooks
    
*   Enumerations (IssuePriority, TimeEntryActivity)
    
*   Cost Types
    
*   Categories
    
*   Versions
    
*   Storages
    
*   LDAP Auth Sources
    

### Steps to reproduce

1.  Construct requests to generate the resources via some way that you can send bursts with multiple requests at the same time
    

### What is the buggy behavior?

*   Since the uniqueness is only checked in the Ruby code, it is possible that requests arrive at the same time and multiple resources are created with the same name.
    

### What is the expected behavior?

1.  The database &nbsp;also validates the uniqueness, so this is not possible.
