Project

General

Profile

Bug #35482

ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"

Added by Samir Jha 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2119120

Description of problem:

Version-Release number of selected component (if applicable):
Satellite 6.12.0 Snap 6.1

How reproducible:
Always

Steps to Reproduce:
1. Enable ACS lab feature
2. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/ --smart-proxy-ids 1
Alternate Content Source created.

3. # hammer alternate-content-source create --name test_repo_acs --base-url http://reposerver.example.com:33333/ --subpaths fake_yum0/
Could not create the Alternate Content Source.:
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_katello_alternate_content_sources_on_name"
DETAIL: Key (name)=(test_repo_acs) already exists.

Actual results:

Expected results:

Additional info:

Associated revisions

Revision 445b0ee6 (diff)
Added by Samir Jha 3 months ago

Fixes #35482 - Add ACS name and label validation (#10261)

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Samir Jha
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10261 added

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.7.0 added

#3 Updated by Samir Jha 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Jeremy Lenz 3 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.7.0
  • Subject changed from ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint" to ACS create fails when same name used with "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint"

Also available in: Atom PDF