Description of problem: 6/16 build rhel 5 recreate: pkg search for any package no results
The issue is actually a combination of other problems. However for the purpose of this bug, we will narrow it down to pkg quick search should by default search *any* / *all* synced channels.
Here's the fix diff --git a/java/code/src/com/redhat/rhn/frontend/action/SearchAction.java b/java/code/src/com/redhat/rhn/frontend/action/SearchAction.java index 317d68d..1bb28e8 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/SearchAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/SearchAction.java @@ -17,6 +17,7 @@ package com.redhat.rhn.frontend.action; import com.redhat.rhn.common.util.ServletUtils; import com.redhat.rhn.domain.org.OrgFactory; import com.redhat.rhn.domain.user.User; +import com.redhat.rhn.frontend.action.channel.PackageSearchAction; import com.redhat.rhn.frontend.action.common.BadParameterException; import com.redhat.rhn.frontend.action.systems.SystemSearchSetupAction; import com.redhat.rhn.frontend.struts.RequestContext; @@ -98,6 +99,7 @@ public class SearchAction extends RhnAction { HashMap attributes = new HashMap(); attributes.put("view_mode", "search_name_and_summary"); attributes.put(SystemSearchSetupAction.SEARCH_STRING, searchString); + attributes.put(PackageSearchAction.WHERE_CRITERIA, "architecture"); // select all the arches to make a better search List<String> defaultArches = new ArrayList<String>(); java/code/src/com/redhat/rhn/common/db/datasource/xml/Package_queries.xml | 38 ++++++++++ java/code/src/com/redhat/rhn/frontend/action/SearchAction.java | 2 java/code/src/com/redhat/rhn/frontend/action/channel/PackageNameOverviewAction.java | 19 ++++- java/code/src/com/redhat/rhn/frontend/action/channel/PackageSearchAction.java | 3 java/code/src/com/redhat/rhn/manager/rhnpackage/PackageManager.java | 24 ++++++ java/code/webapp/WEB-INF/pages/channel/packagesearch.jsp | 2 java/code/webapp/WEB-INF/pages/software/packages/packagenameoverview.jsp | 1 7 files changed, 85 insertions(+), 4 deletions(-) New commits: commit cb6d4fb4d55283dc4a38cc9db1d89598cd41113e Author: John Matthews <jmatthew> Date: Wed Jun 17 12:49:12 2009 -0400
verified 6/19
Verified on staged iso (Satellite-5.3.0-RHEL5-re20090724.0) Using the quick search at the top of the satellite GUI: Packages tzdata Search the top result listed in the result table was: Package Name Summary tzdata Timezone data clicking on the package tzdata listed all of the tzdata-* packages for every RHEL channel my satellite was sync'ed to. moving to RELEASE_PENDING
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html