cryptomator / hub

Cryptomator Hub helps you manage vaults in large teams
GNU Affero General Public License v3.0
36 stars 8 forks source link

Error 500 when attempting to add same device twice #233

Closed overheadhunter closed 8 months ago

overheadhunter commented 8 months ago

Please agree to the following

Summary

constraint violation not handled in PUT /api/devices/{id}

System Setup

Steps to Reproduce

  1. Add device as Alice
  2. Add same device as Bob

Expected Behavior

Error 409

Actual Behavior

Error 500

Reproducibility

Always

Relevant Log Output

ERROR: duplicate key value violates unique constraint "DEVICE_PK"

Anything else?

No response