Project

General

Profile

Actions

Bug #24002

closed

no unique constraint to the name column on the roles table

Added by Jan Hutař almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Database
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:

The role name is unique. However, this doesn't reflect in the underline db.

Version-Release number of selected component (if applicable):

6.3.1, also broken os 6.4.0 snap 7

How reproducible:

Easy

Steps to Reproduce:
1. su - postgres
2. psql foreman
3. insert into roles(name, origin) values('Access Insights Admin', 'redhat_access');

Actual results:

Duplicate records for 'Access Insights Admin'

Expected results:

No duplicate record.

Actions #1

Updated by Jan Hutař almost 6 years ago

  • Category set to Database
Actions #3

Updated by Dominik Hlavac Duran almost 6 years ago

  • Assignee set to Dominik Hlavac Duran
  • Triaged set to No
Actions #4

Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5833 added
Actions #5

Updated by Tomer Brisker almost 6 years ago

  • Bugzilla link set to 1589625
Actions #6

Updated by Tomer Brisker almost 6 years ago

  • Target version set to 1.19.0
  • Fixed in Releases 1.19.0 added
Actions #7

Updated by Dominik Hlavac Duran almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF