# Bug OP-18797 - Race Condition on OpenProject through /api/v3/work_packages/{id}/watchers

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.1.0 |
| Observed in versions | 17.0.0 |
| Sprint | 17.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.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

### Steps to reproduce

1.  You can send multiple requests to watch a work package at the same time. This can be manually done, but is more likely to be abused by automatic tools.

### What is the buggy behavior?

  - You can watch the same work package/meeting/etc multiple times.

### What is the expected behavior?

1.  The database should also validate uniqueness.

### 

<br>

This was reported via YWH but we do not really consider it a security vulnerability. It can be annoying because a user that is watching a resource multiple times also needs to unwatch multiple times. But there's no real problems that occur through this
