Project

General

Profile

Actions

Bug #37822

closed

Creating a repository with duplicate name fails with confusing error

Added by Ian Ballou 3 months ago. Updated about 2 months 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 3 months 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 3 months ago

  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.15.0 added
Actions #4

Updated by Samir Jha 3 months ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/Katello/katello/pull/11203 added
Actions #6

Updated by Chris Roberts about 2 months ago

  • Pull request deleted (https://github.com/Katello/katello/pull/11203)
Actions

Also available in: Atom PDF