Project

General

Profile

Actions

Bug #37822

closed

Creating a repository with duplicate name fails with confusing error

Added by Ian Ballou about 1 month ago. Updated 23 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When creating a repo that has an existing name, there is a new confusing error about root_id being nil:

PG::NotNullViolation: ERROR: null value in column "root_id" of relation "katello_repositories" violates not-null constraint DETAIL: Failing row contains (68, 0bb66c3a-bd33-4ae0-9ab0-9c485efa57bd, null, 1, Default_Organization/Library/custom/Buttermilk_Pancakes/Zoo, 1, null, null, null, null, null, null, null, null, null, null, null, 1970-01-01 00:00:00, 1970-01-01 00:00:00, 1970-01-01 00:00:00).

This is likely a side effect of https://github.com/Katello/katello/pull/11129

Instead, the error about duplicate name should pop up.

Actions #1

Updated by The Foreman Bot about 1 month ago

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

Updated by Ian Ballou about 1 month ago

  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot 23 days ago

  • Fixed in Releases Katello 4.15.0 added
Actions #4

Updated by Samir Jha 23 days ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF