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

Bug 1752123

Summary: Error on VMs admin page on Chromium: "Cannot read property 'isEval' of undefined"
Product: [oVirt] ovirt-engine Reporter: Emanuel Evans <redhat>
Component: Frontend.WebAdminAssignee: bugs <bugs>
Status: CLOSED NOTABUG QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.5.5CC: bugs, enagel, sgratch
Target Milestone: ovirt-4.4.1Flags: sbonazzo: ovirt-4.4?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1759102 (view as bug list) Environment:
Last Closed: 2019-12-11 16:09:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1759102    
Attachments:
Description Flags
engine and ui log, test results none

Description Emanuel Evans 2019-09-13 18:17:33 UTC
Description of problem:

On Chromium 76.0.3809.132, when I log into the oVirt engine and navigate to "Compute -> Virtual Machines", no VMs are visible and I get a JavaScript error:

> Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : Cannot read property 'isEval' of undefined
> Please have your administrator check the UI logs

The error doesn't appear in Firefox 69.0. 

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

Chromium: 76.0.3809.132
oVirt: 4.3.5.5-1.el7 (hosted engine)

How reproducible:

Very on my setup (not sure if it's setup-related).

Steps to Reproduce:
1. Log into web admin as an administrator
2. Navigate to Compute -> Virtual Machines

Actual results:

Error message described above. JS console shows an obfuscated stack trace:

> SEVERE: Uncaught exception (3x)
> com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'isEval' of undefined
> 	at Unknown.getOriginatingScriptUrl(<anonymous>)
> 	at Unknown.toDataURL(<anonymous>)
>
> jOe @ webadmin-0.js:20517
> s5f @ webadmin-0.js:19756
> r5f @ webadmin-0.js:15153
> A5f @ webadmin-0.js:13407
> m3m @ webadmin-0.js:18766
> Uen @ webadmin-0.js:15733
> bfn @ webadmin-0.js:20522
> Zu @ webadmin-0.js:17421
> wv @ webadmin-0.js:18936
> mv @ webadmin-0.js:16376
> Wu @ webadmin-0.js:15181
> Vu @ webadmin-0.js:19018
> (anonymous) @ webadmin-0.js:15563
> d @ webadmin-0.js:17255
> setTimeout (async)
> d @ webadmin-0.js:17255


Expected results:

VMs are shown and there's no error messages.

Additional info:

Comment 1 Sharon Gratch 2019-09-16 10:44:01 UTC
This is not reproduced to me. Can you please attach engine and ui logs once it occurs? 
In addition, please try to clear the browser cache and see if it's reproduced.

Comment 2 Sharon Gratch 2019-09-16 10:48:18 UTC
Does other views except the VMs (Clusters, Templates) work for you under the Compute menu?

Comment 3 Evert Nagel 2019-09-16 14:08:18 UTC
Created attachment 1615547 [details]
engine and ui log, test results

Same issue observed, this was already happening with 4.2, remained after update to 4.3.
Log shows successfull login/test with Firefox at 15:43, then errors with Chrome. Both generate error about "SpiceVersion.txt".

Clearing cache, or disabling through DevTools does not make a difference.

Firefox works, other Compute menu items are fine.

Storage-Disks shows another error, not sure if related:
Mon Sep 16 15:55:25 GMT+200 2019 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: Missing Enum resource 'V5'. Cannot find constant 'StorageFormatType___V5'; expecting a method name

Comment 4 Sharon Gratch 2019-09-18 16:21:45 UTC
Since this issue was started at 4.2 then I guess it will be hard to reproduce. I suggest installing 4.3.6 on a clean environment and see if reproduced.