Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1465070 - [Regression] Content-view include filter for package adds unwanted packages too to the published version
Summary: [Regression] Content-view include filter for package adds unwanted packages t...
Keywords:
Status: CLOSED DUPLICATE of bug 1395642
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.2.10
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: Unspecified
Assignee: Adam Price
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-26 14:41 UTC by vivpatil
Modified: 2020-08-13 09:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-30 20:50:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description vivpatil 2017-06-26 14:41:43 UTC
Description of problem:
Content view include package filter not working as expected while matching the version. When a content view filter is created for a package for e.g "xorg-x11-drv-vmmouse" from RHEL7 Server repository with version equal to "13.0.0-11.el7" it will include all the packages that have the version pattern matching to "13.0.0" in their name . See below
---
xorg-x11-drv-vmmouse-13.0.0-12.el7.x86_64.rpm
xorg-x11-drv-vmmouse-13.0.0-11.el7.x86_64.rpm
xorg-x11-drv-vmmouse-13.0.0-10.el7.x86_64.rpm
---

In the issue this the filter for package xorg-x11-drv-vmmouse equals version "13.0.0-11.el7" matches all the above packages when it should only match xorg-x11-drv-vmmouse-13.0.0-11.el7.x86_64.rpm . The issue occurs for other packages too.

Version-Release number of selected component (if applicable):
Satellite 6.2.10

How reproducible:
Always

Steps to Reproduce:
1. Create a content-view with RHEL7 Server repository.
2. Create an Include filter for package xorg-x11-drv-vmmouse that equals to version "13.0.0-11.el7" . And publish a new version. The published version should only contain a single included package. However it contains extra packages as mentioned in the bug description.

Actual results:
The pattern matching within content view filters for package version does not works and includes redundant packages.

Expected results:
Content View should only contain the included packages.

Additional info:
THe issue seems that version is only matched for string before the "-" in the package name.

Comment 1 Edu Alcaniz 2017-06-26 14:56:06 UTC
Setting the flags.

Comment 4 Mike McCune 2017-06-27 12:58:29 UTC
Confirmed this works correctly in 6.1.11 and fails as described in the bug in 6.2.10. Working to determine if this was recently introduced by testing on 6.2.8

Comment 5 Mike McCune 2017-06-27 18:42:20 UTC
Confirmed this also occurs with 6.2.8.

Comment 6 Mike McCune 2017-06-27 18:42:54 UTC
The issue is that we aren't parsing the Release field when doing the filter.

Comment 9 Adam Price 2017-06-30 15:40:36 UTC
found a related bugzilla: 1395642

related redmine: http://projects.theforeman.org/issues/17916

Comment 10 Adam Price 2017-06-30 15:44:00 UTC
err bug 1395642

Comment 13 Mike McCune 2017-06-30 20:46:48 UTC
This is actually a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1395642 which is already resolved.

Will be releasing HOTFIX packages on the above mentioned bug and closing this out as a duplicate.

Follow 1395642 for updates.

Comment 14 Mike McCune 2017-06-30 20:50:01 UTC

*** This bug has been marked as a duplicate of bug 1395642 ***


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