Bug 1053787

Summary: regular_in_channel_family.pxt and in_channel_family.pxt crash if you have a system locked
Product: [Community] Spacewalk Reporter: Paul Robert Marino <prmarino1>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: mmraka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.1.117-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-04 13:08: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:    
Bug Blocks: 1069560    

Description Paul Robert Marino 2014-01-15 19:10:49 UTC
Description of problem:
if you have a system locked and you go into regular_in_channel_family.pxt or in_channel_family.pxt they crash with an internal server error and send a traceback
this seem similar and or related to the issue in bugid 1051230

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

current nightly build

How reproducible:

happens every time

Steps to Reproduce:
 1) lock a system
  1.a) go to Systems -> Overview -> <system name>
  1.b) Click on "Lock system"

 2)go to Overview -> Subscription Management -> Software Channel Entitlements
 3)click on one of the numbers below "Regular Consumed" or "Systems Subscribed" and possibly any of the other count fields which are populated.

Actual results:

here is the traceback email
"
The following exception occurred while executing this request:
 GET /network/systems/system_list/regular_in_channel_family.pxt?cfam_id=1000 HTTP/1.1 (from browser)  /network/systems/system_list/regular_in_channel_family.pxt (from Apache)

Date:
  Wed Jan 15 13:00:15 2014

Headers:
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Encoding: gzip, deflate
  Accept-Language: en-US,en;q=0.5
  Connection: keep-alive
  Cookie: pxt-session-cookie=52999x64526297bb7404ca9ae547fa8318ea4f
  Host: 170.20.93.168
  Referer: https://<spacewalk.fqdn>/rhn/channels/software/Entitlements.do
  User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:25.0) Gecko/20100101 Firefox/25.0

Form variables:
  cfam_id => 1000

User Information:
  User username (id 1, org_id 1)

Error notes:
  (none)

Initial Request:
  Yes

Error message:
  unknown icon type: "fa fa-1-5x spacewalk-icon-locked-system". at /usr/share/perl5/vendor_perl/PXT/HTML.pm line 594.


"

also I do not know it this is directly related but every time It does a traceback I get this error message in /var/log/httpd/error_log


Expected results:

it should give you a page explaining what is using those entitlements

Additional info:

even if you don't have any systems locked and it renders the pages these pages are out of date. while the legend has the new Icons these pages are still using the old ones and in some cases pointing to pages which have been replaced.
for example the health icon is still the old version and if you click on it, it sends you to a dead page here https://<spacewalk.fqdn>/network/systems/details/probes/index.pxt?sid=<some number here> instead of the page that replaced it here https://<spacewalk.fqdn>/rhn/systems/details/probes/ProbesList.do?sid=<some number here>

Comment 1 Paul Robert Marino 2014-01-15 20:23:04 UTC
I tracked one bug down the bug is in /usr/share/perl5/vendor_perl/Sniglets/Servers.pm thats where /network/systems/details/probes/index.pxt?sid=${sid} is

patches will soon be arriving in the developers list as soon as I can clone the git repo.

Comment 2 Paul Robert Marino 2014-01-15 21:31:35 UTC
I found the fix I will be submitting it to the list shortly

Comment 3 Paul Robert Marino 2014-01-15 21:41:02 UTC
both patches are on the spacewalk-devel mialing list please review them they should pass any code guidelines and may fix problems in other pages as well.

Comment 4 Michael Mráka 2014-01-16 13:49:55 UTC
Patches commited to spacewalk master as
commit 333515fb46ee77ea6f25acc994904e01b0b4e78d
    1053787 - fixed icon name
commit ae9eb7e9ee2ad196248df250d02109901c579cb4
    1053787 - point links to new java ProbesList pages

Comment 5 Matej Kollar 2014-01-17 12:16:02 UTC
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.

Comment 6 Matej Kollar 2014-03-04 13:08:15 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21

Comment 7 Matej Kollar 2014-03-04 13:09:04 UTC
Spacewalk 2.1 has been released.
https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21