Bug 796852

Summary: Unable to add Repository object to System Template
Product: Red Hat Satellite Reporter: Michael Solberg <msolberg>
Component: Content ManagementAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.1CC: ansmith, bkearney, ehelms, jturner, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:29:03 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: 789533    
Bug Blocks: 747354    
Attachments:
Description Flags
katello-debug output none

Description Michael Solberg 2012-02-23 18:53:02 UTC
Created attachment 565352 [details]
katello-debug output

Description of problem:
I'm unable to add a Repository to a System Template.

Version-Release number of selected component (if applicable):
katello-0.1.238-4.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Select a System Template under "Content Management" -> "System Templates"
2. Select a Product with one or more defined Repositories in the "Eligable Content" frame.
3. Select a Repository under the Product and click "Add"
  
Actual results:
Add link changes to spinning wheel.


Expected results:
Repository is added to System Template under "Repositories"


Additional info:

Comment 1 Mike McCune 2012-02-23 23:05:22 UTC
For me the 1st one added fine but the 2nd Add attempt failed and the spinner just sat there forever.

Comment 2 Eric Helms 2012-02-27 22:03:33 UTC
Update to clarify the issue.  Repositories with dashes in the name will fail to add while repositories without dashes in the name will add properly.  This is a result of an issue with the way dashes are handled in search currently across all models not just repositories.  

See https://bugzilla.redhat.com/show_bug.cgi?id=789533 for more details.

Comment 4 Brad Buckingham 2012-03-05 20:35:03 UTC
commit: 6b9ea70884ba125ee422ec724bfb4d3271f43f29

Ref: bug 789533#c5

Updated Katello usage of Lucene query syntax to 'escape' the - operator, since it is commonly used as a separator in names (e.g. repos, packages...etc).

Comment 6 Mike McCune 2012-03-07 23:44:36 UTC
mass move ON_QA after brewing

Comment 7 Jeff Weiss 2012-03-08 18:59:34 UTC
Verified, Katello Version: 0.2.8-1.git.11.033f96d.el6

Comment 9 Mike McCune 2013-08-16 18:20:24 UTC
getting rid of 6.0.0 version since that doesn't exist