Project

General

Profile

Actions

Bug #36041

closed

Add some validation for name in Simplified ACS creation via hammer

Added by Quinn James almost 2 years ago. Updated almost 2 years ago.

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

Description

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

Description of problem:
Not providing a name on Simplified ACS creation via hammer shows an unsightly error. Please consider adding some validation and message like 'Missing values for alternate_content_source.'

Version-Release number of selected component (if applicable):
6.13.0 snap 5

How reproducible:
always

Steps to Reproduce:
1. Try to create a simplified ACS, not providing name for it:
  1. hammer alternate-content-source create --alternate-content-source-type simplified

Actual results:
Could not create the Alternate Content Source.:
PG::NotNullViolation: ERROR: null value in column "name" violates not-null constraint
DETAIL: Failing row contains (42, null, null, null, null, null, null, null, {}, yum, simplified, null, null, null, null).

Expected results:
Validation added and improved error message shown.

Actions

Also available in: Atom PDF