Actions
Bug #37822
closedCreating a repository with duplicate name fails with confusing error
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