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

Also available in: Atom PDF