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:
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.
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?
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.
Created redmine issue http://projects.theforeman.org/issues/16186 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16186 has been resolved.
Created attachment 1219119 [details] verified_dup_package_not_allowed
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.
*** Bug 1402826 has been marked as a duplicate of this bug. ***
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