Bug 680372

Summary: Package filters on RHEL Channels doesn't work as expected
Product: [Retired] Red Hat Network Reporter: Paresh Mutha <pmutha>
Component: RHN/Web SiteAssignee: Jonathon Turel <jturel>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn602CC: ggainey, jhunt, jturel, mamburn, nbronson, nyancey, spurrier, sskracic, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-20 09:21:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paresh Mutha 2011-02-25 10:17:44 UTC
Description of problem:
Under a channel, if we try to filter first by any of the alphabets and then enter a string under "Filter by package" then it returns incomplete list of packages based on the entered filter string.

Example: If we go to a base channel -> packages -> click on "R" which would list all packages starting with R, then enter "ruby" in Filter by packages. This should return all packages starting with ruby as a string.

Version-Release number of selected component (if applicable):
RHN Hosted 5.2.6

How reproducible:
Always

Steps to Reproduce:
1] Login to RHN -> Channel -> Open any of the RHEL Base Channel -> Packages
This bring us to url "https://rhn.redhat.com/rhn/channels/PackageList.do?cid=10401"

2] Click on "c" near filter which will sort pacakges starting with c.
Url is "https://rhn.redhat.com/rhn/channels/PackageList.do?lower=240&cid=10401"

3] Now enter cups in the filter by package box and click on "Go"
url here is "https://rhn.redhat.com/rhn/channels/PackageListSubmit.do?cid=10401"

Actual Result:
Just one package gutenprint.
Example:
Package					Summary
gutenprint-cups-5.2.5-2.el6.i686 	CUPS drivers for Canon, Epson, HP and compatible printers 

Expected Result:
Complete list of packages filtered by cups.

Example:
Package				Summary
cups-1.4.2-35.el6:1.i686 	Common Unix Printing System
cups-1.4.2-35.el6_0.1:1.i686 	Common Unix Printing System
cups-devel-1.4.2-35.el6:1.i686 	Common Unix Printing System - development environment 
(...and so on...)

Additional info:
It seems that if we click on the alphabet and then enter a string to filter the results then it filters down the list based on Summary and not the package name.
In the example mentioned in Steps to Reproduce, you can see that only cups-devel-1.4.2-35.el6:1.i686 has cups as a string in its summary. And other packages don't have CUPS in its summary. So likely the filtering is done based on Summary and not on package name.

Comment 1 Paresh Mutha 2011-02-25 10:21:35 UTC
Additionally I would like to mention that, if you don't click on any of those alphabets, but directly enter the string (example: cups) then it filters out the packages correctly and returns the list of packages as expected.

Problem is seen only when we first click on an alphabet and then enter the string to filter the packages.