Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 516546

Summary: create channel w/ yum: misleading/wrong error msg for repo label
Product: [Community] Spacewalk Reporter: Sandro Mathys <sandro>
Component: WebUIAssignee: Shannon Hughes <shughes>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.6CC: jsherril, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-05 14:57:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 559281    

Description Sandro Mathys 2009-08-10 11:54:46 UTC
Description of problem:
If one creates a new channel with an associated yum repo but leaves the repo-label empty (because it has no *, because it's not mandatory w/o a repo url) he receives the error msg "invalid channel summary" instead of "invalid repo label" or even better "repo label must be provided if a repo url is given".

Additionally, it's not clear what the repo-label is for, since there seems to be a 1:1 relationship between a channel and a yum repo which would mean that the channel-label is enough.

Version-Release number of selected component (if applicable):
latest from the 0.6 repo

How reproducible:
always

Steps to Reproduce:
1. create a new channel
2. provide a repo-url but no repo-label
3. click the submit button
  
Actual results:
"invalid channel summary"

Expected results:
"repo label cannot be empty"

Additional info:

Comment 1 Šimon Lukašík 2010-03-04 18:11:41 UTC
*** Bug 570560 has been marked as a duplicate of this bug. ***

Comment 2 Justin Sherrill 2010-03-04 19:46:37 UTC
e0674f232af3f8018982fd72b4b30743b778edfa

fixed in spacewalk master.  Error now should state:

"A repo label is required if providing a yum repository url."

if the repo label is missing (and a yum repository url is provided).

The repo label was provided because down the road we intend to support multiple repo's per channel, so it was meant to differentiate them.  Currently it is fairly meaningless.


-Justin

Comment 3 Miroslav Suchý 2010-05-05 14:57:09 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.