Bug 1106565 - Package Filter rules should not restrict on unique package name.
Summary: Package Filter rules should not restrict on unique package name.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-09 15:21 UTC by Justin Sherrill
Modified: 2019-09-26 18:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:26:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6607 0 None None None 2016-04-22 16:59:58 UTC

Description Justin Sherrill 2014-06-09 15:21:26 UTC
Description of problem:

Having repository with wit packages

  package-0:1.0.0
  package-0:2.0.0
  package-0:3.0.0
  package-0:4.0.0

There isn't an easy way to setup a filter such that the following packages are included:

  package-0:2.0.0
  package-0:4.0.0

Simply because:

    validates :name, :presence => true, :uniqueness => { :scope => :content_view_filter_id }


You can't have two rules with the same package name.  We should either lift this restriction or support a comma seperated list of values for exact versions.

Comment 2 Brad Buckingham 2014-07-14 21:20:34 UTC
Created redmine issue http://projects.theforeman.org/issues/6607 from this bug

Comment 3 Brad Buckingham 2014-07-14 21:39:02 UTC
Proposed fix in Katello PR:
   https://github.com/Katello/katello/pull/4426

Comment 5 Justin Sherrill 2014-08-18 13:07:41 UTC
Steps to reproduce:


1.  Enable and Sync RHEL 6 Server
2.  Create a content view
3.  Create a package filter on a content view (set to 'includes')
2.  Add the following:

firefox 3.6.26
firefox 3.6.9

Hit save.  Make sure it saves

5.  Publish the content view
6.  Make sure only packages with those two versions are included


You might want to test multiple less than/greater than filters as well

Comment 6 Tazim Kolhar 2014-08-20 13:57:07 UTC
VERIFIED
package filters set as include can be added
only packages with two versions are included
tried less than/greater than filters

Comment 7 Bryan Kearney 2014-09-11 12:26:47 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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