Bug 1482078

Summary: Channel drop-down menu on the "Manage software packages" page has wrong hierarchy of parent/childs channels
Product: [Community] Spacewalk Reporter: Eric Herget <eherget>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.6CC: eherget, ggainey, pstudeni, rdrazny, satqe-list, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java.noarch 2.7.113-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1461898 Environment:
Last Closed: 2017-09-27 19:38:15 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: 1461898    
Bug Blocks: 1310034, 1484117    

Description Eric Herget 2017-08-16 12:13:47 UTC
+++ This bug was initially created as a clone of Bug #1461898 +++

Description of problem:
With multiple custom base and child channels on the Spacewalk 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.7.111-1.fc26

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.

--- Additional comment from Radovan Drazny on 2017-06-15 10:24 EDT ---



--- Additional comment from Radovan Drazny on 2017-06-15 10:25 EDT ---



--- Additional comment from Grant Gainey on 2017-07-20 11:30:16 EDT ---

spacewalk-.github:
4226dbbd01ff102a823fd3c00d90aa2d819daef3

--- Additional comment from Grant Gainey on 2017-08-15 15:13:55 EDT ---

Missed other users of channel_selector.jspf

spacewalk.github:
0c63c56e0b22eb65049b1a810cc2f6a23ed33c53

Comment 2 Eric Herget 2017-09-27 19:38:15 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27