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

Bug 920603

Summary: JavaScript errors
Product: Red Hat Satellite 5 Reporter: Martin Korbel <mkorbel>
Component: WebUIAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 570CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.3.8-73 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 21:56:36 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: 462714    
Attachments:
Description Flags
js1.log
none
js2.log
none
js3.log
none
js4.log
none
js5.log none

Description Martin Korbel 2013-03-12 12:32:13 UTC
Description of problem:
Some pages have got a JS errors.

Version-Release number of selected component (if applicable):
I tested it with clean Sat5.5.0, without clients and other channels.
Sat5.5.0
Sat5.4.1

How reproducible:
Open some link from the attachment files.


Actual results:
- TypeError: 'null' is not an object (evaluating 'd.getElementById(id).parentNode') - attachment js1.log

- TypeError: 'null' is not an object (evaluating 'channelTable.rows') - attachment js2.log

- TypeError: 'null' is not an object (evaluating '\$(\"#site_footer\").load') - attachment js3.log

- TypeError: 'undefined' is not an object (evaluating 'document.orgCreateForm.usepam.checked') - attachment js4.log

- TypeError: 'undefined' is not an object (evaluating 'document.userCreateForm.usepam') - attachment js5.log

Additional info:
FireFox 19.0
FireBug 1.11

Comment 1 Martin Korbel 2013-03-12 12:32:47 UTC
Created attachment 708940 [details]
js1.log

Comment 2 Martin Korbel 2013-03-12 12:33:09 UTC
Created attachment 708941 [details]
js2.log

Comment 3 Martin Korbel 2013-03-12 12:33:29 UTC
Created attachment 708942 [details]
js3.log

Comment 4 Martin Korbel 2013-03-12 12:33:58 UTC
Created attachment 708943 [details]
js4.log

Comment 5 Martin Korbel 2013-03-12 12:34:28 UTC
Created attachment 708944 [details]
js5.log

Comment 6 Martin Korbel 2014-11-24 13:16:18 UTC
Tested on Satellite-5.7.0-RHEL6-re20141119.0 (spacewalk-java-2.3.8-67.el6sat)
The change (bootstrap) of the frontend has repaired some cases.

add js1.log - Fixed
add js2.log - Fixed
add js3.log - Fixed
add js4.log - little different, but still here
https://<fqdn>/rhn/admin/multiorg/OrgCreate.do
TypeError: document.orgCreateForm.usepam is undefined
add js5.log - Fixed


new one:
/rhn/kickstart/cobbler/CobblerSnippetView.do?path=/var/lib/cobbler/snippets/cobbler_register

JE: TypeError: el is undefined | line: 202 | source: ace.js
	if (el.env && el.env.editor instanceof Editor)

Comment 7 Stephen Herr 2014-11-24 20:38:20 UTC
Committing to Spacewalk master:
ef586598e2e9aa36ef3ce594d03db0cb6901ec09