Bug #36041
closedAdd some validation for name in Simplified ACS creation via hammer
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
1. Try to create a simplified ACS, not providing name for it:
- 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.
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/10436 added
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases Katello 4.8.0 added
Updated by Anonymous almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|3bdb5ae877d64110cda1961b2abce1b857c91789.
Updated by Ian Ballou almost 2 years ago
- Subject changed from Add some validation for name in Simplified ACS creation via hammer to Add some validation for name in Simplified ACS creation via hammer
- Category set to Repositories
- Assignee set to Quinn James
- Target version set to Katello 4.8.0
- Triaged changed from No to Yes