Bug 516546 - create channel w/ yum: misleading/wrong error msg for repo label
Summary: create channel w/ yum: misleading/wrong error msg for repo label
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Shannon Hughes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
: 570560 (view as bug list)
Depends On:
Blocks: space09
TreeView+ depends on / blocked
 
Reported: 2009-08-10 11:54 UTC by Sandro Mathys
Modified: 2010-05-05 14:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-05 14:57:09 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.