Bug 891876

Summary: JON login screen does not appear in IE9
Product: [JBoss] JBoss Operations Network Reporter: Sunil Kondkar <skondkar>
Component: UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.1.2CC: jkremser, mithomps, myarboro, skondkar, tsegismo, vnguyen
Target Milestone: ER02   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:35:17 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: 1012435    
Attachments:
Description Flags
Screenshot
none
Screenshot_LoginScreen_EAP6-Notification
none
message if the JS is disabled 1
none
message if the JS is disabled 2 none

Description Sunil Kondkar 2013-01-04 10:39:48 UTC
Description of problem:

JON login screen does not appear in IE9 on JON 3.1.2.CR1 build.

The URL http://<IP>:7080/coregui/ does not show the login screen in IE9. It shows only a straight vertical line on the screen. Please find attached the screenshot.

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

Build:
Version: 3.1.2.CR1
Build Number: f6e41ba:33f6cb2

OS: Windows 2008_x64
Database: Postgresql 8.4.2
Browser: IE 9.0.8112.16421

How reproducible:
Always

Steps to Reproduce:

1. Enter JON URL in IE 9 browser.  ( http://<IP>:7080 )
2. It displays screen displaying 'loading..'
3. Login screen does not appear.
  
Actual results:

JON login screen does not appear in IE9.

Expected results:
JON login screen should appear in IE9.

Additional info:

Login screen appears in IE8 in FF10 and user can login successfully.

Comment 1 Sunil Kondkar 2013-01-04 10:40:24 UTC
Created attachment 672353 [details]
Screenshot

Comment 7 Sunil Kondkar 2013-01-07 09:35:35 UTC
Additional Info:
Tested after clearing the cache in IE9, still it does not display the login screen on JON 3.1.2.CR1 build.

Comment 8 Thomas Segismont 2013-09-20 13:20:21 UTC
I have recently tested JON 3.1.2 with IE9 without problems. If there was a problem with 3.1.2 CR1 build, it has been fixed before the GA.

IE9 should still work in 3.2, so I don't close the BZ to let QE verify on ER2

Comment 9 Jirka Kremser 2013-09-26 14:10:59 UTC
I saw the same behavior when the coregui was not compiled for IE8/9. Can you please check if the 

rhq-server-4.9.0/modules/org/rhq/server-startup/main/deployments/rhq.ear/coregui.war/org.rhq.core.RHQDomain/org.rhq.core.RHQDomain.nocache.js file 

contains this string

"return ua.indexOf('msie') != -1 && $doc_0.documentMode >= 9;"

?

If the string is not there, it means it wasn't compiled for IE (that's what our rhq-master jenkins job by default does to speed things up).

Comment 10 Sunil Kondkar 2013-09-26 14:25:33 UTC
This bug is no more reproducible on JBoss ON 3.2 ER1 build.
IE9 version: 9.0.8112.16421

The file:
jon-server-3.2.0.ER1/modules/org/rhq# vi server-startup/main/deployments/rhq.ear/coregui.war/org.rhq.core.RHQDomain/org.rhq.core.RHQDomain.nocache.js

has below string:
return ua.indexOf('msie') != -1 && $doc_0.documentMode >= 9;

Login screen appears on IE9.

Comment 11 Sunil Kondkar 2013-09-30 11:03:46 UTC
Tested on JBoss ON 3.2 ER2 build.

The file: '/jon-server-3.2.0.ER2/modules/org/rhq/server-startup/main/deployments/rhq.ear/coregui.war/org.rhq.core.RHQDomain/org.rhq.core.RHQDomain.nocache.js' has below line.

return ua.indexOf('msie') != -1 && $doc_0.documentMode >= 9;

However, I observed that on entering JON URL in IE 9 browser( http://<IP>:7080 ) , it displays a screen with EAP6 notification. Please find attached the screenshot for the same. 

If I extend the URL with coregui, the login screen appears successfully.
( Ex: http://<IP>:7080/coregui ) 

Additional info: This issue does not exist on JBoss ON 3.2 ER1 build.

IE 9 version: 9.0.8112.16421

Comment 12 Sunil Kondkar 2013-09-30 11:04:58 UTC
Created attachment 805122 [details]
Screenshot_LoginScreen_EAP6-Notification

Comment 13 Jirka Kremser 2013-09-30 13:19:20 UTC
The EAP6 notification is correct behavior. I've introduced it when working on bug 1000065. It should redirect the user to /coregui once the back-end is up and running (or display an error if start up failed).

Comment 14 Jirka Kremser 2013-10-03 13:15:16 UTC
Wasn't able to replicate it using the IE 9.0.8112.16421, Win 7 (provided by browserstack.com) on current master (4.10.0-SNAPSHOT (02ed9c403)).

Comment 15 Sunil Kondkar 2013-10-08 11:08:00 UTC
Verified on Version: 3.2.0.ER3 Build Number: c0742ed:cbad264

The redirection issue is no more reproducible on IE9. The JON URL in IE 9 browser( http://<IP>:7080 ) redirects to coregui and login screen appears. The login is successful on IE9.

Comment 16 Viet Nguyen 2013-11-14 21:21:38 UTC
I was going to file a bug then saw this.  As of ER5 I couldn't get to the login screen (ip:7080 or :7080/coregui) with IE9 w2008 64 or 32 bit.

Comment 17 Mike Foley 2013-11-14 22:00:32 UTC
ok.  if this is reproducible, it is blocking for GA.

QE has an IE9/Charts/Alert Test Day planned for next week with ER6 ...and i am adding this as something for everyone in QE to check so we get more datapoints. 

but

if it is not working in ER5 ... this is flat out blocking.  this a crystal clear PRD requirement BR.002

Comment 18 Mike Foley 2013-11-14 22:04:51 UTC
based on comment #16 ... this has to be resolved prior to GA.  re-opening ...and adding to the JON 3.2 blocker.   this a crystal clear PRD requirement BR.002

Comment 19 Viet Nguyen 2013-11-14 22:06:43 UTC
Can someone with IE9, Windows2008 SP2 (64 and 32 bit) confirm this?  My windows VMs are running on VirtualBox, OS X 10.8.5.  I could not get 3.1.2.GA, ER3, ER5 to load.

Comment 20 Mike Foley 2013-11-14 22:08:21 UTC
ok ... this is the documented TCMS testcase run from ER5 ...which includes IE9 qualification

https://tcms.engineering.redhat.com/run/96679/

i am going to make this ON_QA .... to hopefully clarify this.

Comment 21 Mike Foley 2013-11-14 22:16:55 UTC
non-blocking for ER6.

Comment 22 Mike Foley 2013-11-14 22:32:51 UTC
ON_QA for retest

Comment 23 Sunil Kondkar 2013-11-15 10:24:51 UTC
I have a Windows 2008 R2 64 bit vm with IE9.

Verified on JON 3.2 ER5. The JON URL in IE 9 browser( http://<IP>:7080 ) redirects to coregui and login screen appears.

Comment 24 Mike Foley 2013-11-15 12:36:18 UTC
Hi,

I have a Windows 2008 R2 64 bit vm with IE 9 . JON Login is working on IE9 for JON3.2 ER5. Double checked the test case and it is working on ER5.

Regards,
Sunil

Comment 25 Viet Nguyen 2013-11-15 15:32:17 UTC
I found out what preventing my IE from loading JON login page. By default IE was in "stealth" mode - disabling access to JS until I whitelisted JON server IP (Internet options -> Security tab -> Local intranet -> Sites -> add

Comment 26 Mike Thompson 2013-11-27 15:27:10 UTC
@Stefan had an idea to add a fallback on the html page to detect if javascript is enabled and show some kind of message if it is not.

Comment 27 Jirka Kremser 2013-11-27 17:29:23 UTC
Good idea, I can do it. "<noscript>" tag should do the work, no rocket science is needed.

Comment 28 Jirka Kremser 2013-11-27 18:49:32 UTC
Created attachment 829878 [details]
message if the JS is disabled 1

Comment 29 Jirka Kremser 2013-11-27 18:51:03 UTC
Created attachment 829879 [details]
message if the JS is disabled 2

branch:  release/jon3.2.x
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=20dffd6fe
time:    2013-11-27 19:47:46 +0100
commit:  20dffd6feddcf0edff534d4e46e4912829d793ba
author:  Jirka Kremser - jkremser
message: [BZ 891876] - JON login screen does not appear in IE9 - adding the
         'noscript' element that will show the warning if the browser
         has the JavaScript disabled.