Bug 444758 - noarch packages are not found by exact name search
Summary: noarch packages are not found by exact name search
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Web Site
Version: rhn500
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Stephen Herr
URL:
Whiteboard: us=23816
: 450824 (view as bug list)
Depends On:
Blocks: 446437
TreeView+ depends on / blocked
 
Reported: 2008-04-30 14:22 UTC by Stephen Herr
Modified: 2008-06-26 20:22 UTC (History)
2 users (show)

Fixed In Version: 5.0.6
Clone Of:
Environment:
Last Closed: 2008-06-26 20:22:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Stephen Herr 2008-04-30 14:22:55 UTC
Description of problem:
Some packages will not be found when you search for their name in the package
search.

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

How reproducible:
Always

Steps to Reproduce:
1. Log into RHN
2. Click on package search in the top search bar or navigate to the product
search page (/rhn/channels/software/Search.do)
3. Search for "gnome-user-docs" (or "m17n-db-telugu", or probably a lot of
others I don't know about)
  
Actual results:
Search returns No Packages.

Expected results:
Search finds package

Additional info:

Comment 1 Stephen Herr 2008-04-30 14:28:52 UTC
Additional info:

These packages were discovered by searching for various packages that returned
from the SQL search in bug 222405
(https://bugzilla.redhat.com/show_bug.cgi?id=222405).

Comment 2 Stephen Herr 2008-04-30 18:16:44 UTC
Hokay, so upon looking into this a bit more it appears to only happens to noarch
packages when doing an exact name search. 

At least I think it's only noarch packages, all the packages i've found so far
that exhibit this behavior are noarch. And the search only doesn't work for
exact name searches, if you leave a word off the front or back of the package
search it suddenly becomes findable.

Comment 3 Grant Gainey 2008-05-15 21:14:36 UTC
TEST PLAN:
=========

First - please regression-test, using the test plan for 

https://bugzilla.redhat.com/show_bug.cgi?id=210188

Second - use the reproducer above.


Comment 4 Stephen Herr 2008-05-20 15:29:02 UTC
Verified in Dev

Comment 5 Stephen Herr 2008-06-11 14:54:48 UTC
So it turned out that this doesn't have anything to do with noarch packages at
all, except that most packages that have two '-'s in their name are noarch. The
search regex was expecting all package searches with two '-'s to be in the
name-version-arch format, and so wasn't finding packages in the
name1-name2-name3 format. S'been fixed. 

Comment 6 Stephen Herr 2008-06-11 15:00:41 UTC
*** Bug 450824 has been marked as a duplicate of this bug. ***

Comment 7 Stephen Herr 2008-06-16 15:58:50 UTC
verified in qa


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