Bug 1109246

Summary: Package search does not work for custom channels shared to a trusted organization.
Product: [Community] Spacewalk Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2CC: haiyanmd
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1109260 (view as bug list) Environment:
Last Closed: 2015-02-10 15:20:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1109260, 1484117    

Description Dimitar Yordanov 2014-06-13 13:28:41 UTC
Description of problem:
Package search does not work for custom channels shared to a trusted organization.

Version-Release number of selected component (if applicable):
spacewalk-java-2.2.90-1

How reproducible:
100%

Steps to Reproduce:
1. Create a custom channel "ch_test" and mark it as Public.

This channel is public and may be accessed by any of the trusted organizations trusted by this organization.

2. Push/sync package "test_rpm" to channel "ch_test".
3. Create new organization "test_org"
  Admin -> Organizations -> Create New Organization
4. Set a Trust between the organizations.
5. Log in to the "test_org". Channel "ch_test" should be visible.
6. Channels -> Package search 
   Look up  for package "test_rpm" 

Actual results:
No packages found.


Expected results:
test_rpm is found.

Additional info:
API call packages.search.name returns no packages as well.
The problem is only for custom channels both packages and erratas.

Comment 1 Haiyan Z 2014-06-13 14:47:01 UTC
Spacewalk server 2.1 also has the same issue - Package search does not work for custom channels shared to a trusted organization. 

Version-Release number of selected component for spacewalk server 2.1(if applicable):
pacewalk-java-2.1.164-1

Comment 2 Stephen Herr 2015-02-10 15:20:02 UTC
There is already another bug open for this issue that has the fix commit and package information in it, closing as duplicate. This should be fixed in Spacewalk 2.3.

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

Comment 3 Eric Herget 2017-09-28 18:09:12 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.