Bug 1286984 - Uncaught javascript NPE when attempting to Edit VM
Summary: Uncaught javascript NPE when attempting to Edit VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.UserPortal
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.2
: 3.6.2
Assignee: Tomas Jelinek
QA Contact: Petr Matyáš
URL:
Whiteboard:
: 1284652 1293294 (view as bug list)
Depends On:
Blocks: 1213937
TreeView+ depends on / blocked
 
Reported: 2015-12-01 09:44 UTC by Tomas Jamrisko
Modified: 2016-02-18 11:17 UTC (History)
13 users (show)

Fixed In Version: ovirt-3.6.2-1
Clone Of:
Environment:
Last Closed: 2016-02-18 11:17:07 UTC
oVirt Team: Virt
Embargoed:
tjelinek: ovirt-3.6.z?
rule-engine: planning_ack?
tjelinek: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1286224 0 unspecified CLOSED Uncaught exception when creating new VM from template 2021-02-22 00:41:40 UTC
oVirt gerrit 50653 0 master MERGED userportal: NPE if the user does not have access to management network 2015-12-18 08:26:30 UTC
oVirt gerrit 50667 0 ovirt-engine-3.6 MERGED userportal: NPE if the user does not have access to management network 2015-12-19 20:16:20 UTC

Internal Links: 1286224

Description Tomas Jamrisko 2015-12-01 09:44:38 UTC
Description of problem:
When using IE11 on Win7 x64 opening the Edit VM windows in User Portal results in a warning about uncaught exception:

Tue Dec 01 10:38:48 GMT+100 2015 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: trying to localize null, probable error. Exception is not thrown, returning 'N/A'
Tue Dec 01 10:38:48 GMT+100 2015 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: trying to localize null, probable error. Exception is not thrown, returning 'N/A'
Tue Dec 01 10:38:48 GMT+100 2015 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: trying to localize null, probable error. Exception is not thrown, returning 'N/A'
Tue Dec 01 10:38:49 GMT+100 2015 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: trying to localize null, probable error. Exception is not thrown, returning 'N/A'
Tue Dec 01 10:38:49 GMT+100 2015 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: trying to localize null, probable error. Exception is not thrown, returning 'N/A'
Tue Dec 01 10:38:49 GMT+100 2015 
SEVERE: Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 description: Unable to get property 'q' of undefined or null reference
 number: -2146823281
 stack: TypeError: Unable to get property 'q' of undefined or null reference
   at HNm (Unknown script code:8163:534952)
   at VEk (https://rhevm36.spice.brq.redhat.com/ovirt-engine/userportal/B0BE9D9C2253E1EAC7BBA69F1585C1BC.cache.html:6036:43)
   at YEk (https://rhevm36.spice.brq.redhat.com/ovirt-engine/userportal/B0BE9D9C2253E1EAC7BBA69F1585C1BC.cache.html:6323:364)
   at OIk (https://rhevm36.spice.brq.redhat.com/ovirt-engine/userportal/B0BE9D9C2253E1EAC7BBA69F1585C1BC.cache.html:4585:36)
   at RIk (https://rhevm36.spice.brq.redhat.com/ovirt-engine/userportal/B0BE9D9C2253E1EAC7BBA69F1585C1BC.cache.html:6323:24798)
   at MHk (https://rhevm36.spice.brq.redhat.com/ovirt-engine/userportal/B0BE9D9C2253E1EAC7BBA69F1585C1BC.cache.html:5852:159)
   at PHk (https://rhevm36.spice.brq.redhat.com/ovirt-eng


Version-Release number of selected component (if applicable):
rhevm-userportal-3.6.1-0.2

How reproducible:
100 %

Steps to Reproduce:
1. use IE 11 to edit a VM

Actual results:
You get the warning

Expected results:
The exception should be handled

Additional info:
it was working fine on one of the previous builds, so this appears to be a regression. 
The system was updated between builds instead of freshly installed

Comment 1 Einav Cohen 2015-12-02 12:46:19 UTC
- It looks like an application-level exception, so I assume this happens on all browsers (worth confirming) - the reporter simply happened to use IE11 -> changing summary accordingly, moving to 'virt'. 

- May be related to (or duplicate of) bug 1286224.

Comment 2 Tomas Jelinek 2015-12-17 09:07:50 UTC
This is a different bug than 1286224 - this happens when the user does not have permission to see the management network, than it fails on NPE in Linq.findManagementNetwork(clusterNetworks).getName()

Comment 3 Alona Kaplan 2016-01-04 18:13:27 UTC
*** Bug 1293294 has been marked as a duplicate of this bug. ***

Comment 4 Alona Kaplan 2016-01-05 12:15:39 UTC
*** Bug 1284652 has been marked as a duplicate of this bug. ***

Comment 5 Petr Spacek 2016-02-01 12:24:53 UTC
I confirm that version 3.6.2.6-0.1.el6 fixed the problem in our environment.

Comment 6 Petr Matyáš 2016-02-09 12:13:56 UTC
Verified on 3.6.3-1
With Win7 x64 and IE11


Note You need to log in before you can comment on or make changes to this bug.