Bug 981639 - User shouldn't be allowed to add same package in content-view filter repeatedly
Summary: User shouldn't be allowed to add same package in content-view filter repeatedly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Jameer Pathan
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-05 11:11 UTC by Sachin Ghai
Modified: 2022-10-10 12:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:49:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
same package 'cow' is added thrice (54.12 KB, image/png)
2013-07-05 11:11 UTC, Sachin Ghai
no flags Details
verified_dup_package_not_allowed (109.40 KB, image/png)
2016-11-10 00:54 UTC, Bruno Rocha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16186 0 None None None 2016-08-18 19:02:20 UTC

Description Sachin Ghai 2013-07-05 11:11:29 UTC
Created attachment 769216 [details]
same package 'cow' is added thrice

Description of problem:
User shouldn't be allowed to add same package in content-view filter repeatedly, especially when user choose 'All version'.


Version-Release number of selected component (if applicable):
katello-glue-elasticsearch-1.4.2-1.git.761.9817788.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-1.4.2-1.git.98.3567fd4.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
signo-katello-0.0.9-1.el6.noarch
katello-glue-candlepin-1.4.2-1.git.761.9817788.el6.noarch
katello-1.4.2-1.git.761.9817788.el6.noarch
katello-repos-1.4.2-1.el6.noarch
katello-common-1.4.2-1.git.761.9817788.el6.noarch
katello-all-1.4.2-1.git.761.9817788.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.4.2-1.git.98.3567fd4.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-configure-1.4.3-1.git.65.63e692c.el6.noarch
katello-glue-pulp-1.4.2-1.git.761.9817788.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. create a content-view definition
2. Create a package filter
3. include/exclude the same package repeatedly

Actual results:
User can add same package in cv filter repeatedly

Expected results:
shouldn't be allowed to add same package, when user selects 'All Version'

Additional info:

Comment 1 RHEL Program Management 2013-09-17 04:24:06 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Justin Sherrill 2013-09-17 17:59:33 UTC
This seems like an necessary restriction, and becomes more complicated with the fact that you can have multiple rules on a filter and multiple filters on a definition.  I do not feel this is worthy to do.

Thoughts?

Comment 5 Sachin Ghai 2013-09-18 11:27:36 UTC
Yeah, we can apply multiple rules on a filter but would be nice if we somehow restrict user to add add same rule multiple times and on a single filter.

Comment 6 John Mitsch 2016-08-18 18:55:37 UTC
Created redmine issue http://projects.theforeman.org/issues/16186 from this bug

Comment 7 Bryan Kearney 2016-08-29 22:00:49 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16186 has been resolved.

Comment 10 Bruno Rocha 2016-11-10 00:54:48 UTC
Created attachment 1219119 [details]
verified_dup_package_not_allowed

Comment 11 Bruno Rocha 2016-11-10 00:55:42 UTC
Verified in:

satellite-6.3.0-6.1.beta.el7sat.noarch - RHEL6 and RHEL7

Conclusion:

As in attached image system does not allow duplicate package to be added to the same filter.

Comment 12 Brad Buckingham 2017-01-05 00:14:58 UTC
*** Bug 1402826 has been marked as a duplicate of this bug. ***

Comment 13 Satellite Program 2018-02-21 16:49:54 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336


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