Project

General

Profile

Actions

Bug #24277

open

products and repositories missing unique constraint in database schema

Added by Thomas McKay almost 7 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If a calls to create a product or repository happen simultaneously to server, duplicates can be created with same name and/or label.

I encountered this using foreman-ansible-modules which was running "fixtures" and "tests" in parallel.

Enforcing uniqueness in database would prevent this.

Many other resources with label column should also be enforced unique.

Actions

Also available in: Atom PDF