Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1461898

Summary: Channel drop-down menu on the "Manage software packages" page has wrong hierarchy of parent/childs channels
Product: Red Hat Satellite 5 Reporter: Radovan Drazny <rdrazny>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED ERRATA QA Contact: Radovan Drazny <rdrazny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: eherget, jdobes, pstudeni, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.5.14-96-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1482078 (view as bug list) Environment:
Last Closed: 2017-10-19 11:57:19 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: 1450111, 1482078    
Attachments:
Description Flags
Real channel structure on the Sat server
none
Wrong structure in the drop down menu
none
Dropdown menu structure after the fix none

Description Radovan Drazny 2017-06-15 14:24:03 UTC
Description of problem:
With multiple custom base and child channels on the Sat server, the channel drop down menu on the ../rhn/software/manage/packages/PackageList.do page is messed up.

Version-Release number of selected component (if applicable):
spacewalk-java-2.5.14-89.el6sat

How reproducible:
always

Steps to Reproduce:
1. Create number of base channels (five was enough for me, probably will work even with a smaller number)
2. Create a few child channels for each base channel from step 1 (three was enough for me). There is no need for any packages in channels.
3. Go to ../rhn/software/manage/packages/PackageList.do and open the "Channel:" drop down menu.

Actual results:
Hierarchy of channels displayed in the menu is wrong. See the attached picture for an example.

Expected results:
Channel hierarchy in the menu is correct.

Comment 1 Radovan Drazny 2017-06-15 14:24:40 UTC
Created attachment 1288085 [details]
Real channel structure on the Sat server

Comment 2 Radovan Drazny 2017-06-15 14:25:49 UTC
Created attachment 1288086 [details]
Wrong structure in the drop down menu

Comment 3 Grant Gainey 2017-07-20 15:30:16 UTC
spacewalk-.github:
4226dbbd01ff102a823fd3c00d90aa2d819daef3

Comment 4 Grant Gainey 2017-08-15 19:13:55 UTC
Missed other users of channel_selector.jspf

spacewalk.github:
0c63c56e0b22eb65049b1a810cc2f6a23ed33c53

Comment 5 Grant Gainey 2017-08-15 19:23:39 UTC
*** Bug 1481661 has been marked as a duplicate of this bug. ***

Comment 6 Tomas Lestach 2017-08-16 09:14:58 UTC
I do not think this BZ should be ON_QA. Switching back to MODIFIED.

Comment 9 Radovan Drazny 2017-09-12 10:41:17 UTC
Reproduced on spacewalk-java-2.5.14-95.el6sat using the reproducer from the initial report. After update to spacewalk-java-2.5.14-97.el6sat and checking the dropdown menu, the structure is correct. See the attached picture.

VERIFIED

Comment 10 Radovan Drazny 2017-09-12 10:41:58 UTC
Created attachment 1324824 [details]
Dropdown menu structure after the fix

Comment 12 errata-xmlrpc 2017-10-19 11:57:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2915