Bug 1389998

Summary: [UI] - ui exception is thrown when closing every dialog window in the webadmin portal with the 'x' sign
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: Frontend.WebAdminAssignee: Greg Sheremeta <gshereme>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.0.5.4CC: bugs, mburman, michal.skrivanek, nsimsolo, oourfali, pnovotny
Target Milestone: ovirt-4.0.5Keywords: Regression
Target Release: 4.0.5.5Flags: oourfali: ovirt-4.0.z?
rule-engine: blocker?
mburman: planning_ack?
rule-engine: devel_ack+
pnovotny: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-29 23:35: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: 1377271    
Attachments:
Description Flags
screenshot
none
logs none

Description Michael Burman 2016-10-30 13:19:41 UTC
Created attachment 1215566 [details]
screenshot

Description of problem:
[UI] - ui exception is thrown when closing every dialog window in the webadmin portal with the 'x' sign


2016-10-30 15:13:37,796 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Permutation name: 2D3D9270307C9078085A70A0F003D07C
2016-10-30 15:13:37,796 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 __gwt$exception: <skipped>: Cannot read property 'X7' of null
        at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.$hideAndUnbind(AbstractModelBoundPopupPresenterWidget.java:272)
        at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget$3.commandFinished(AbstractModelBoundPopupPresenterWidget.java:184)
        at org.ovirt.engine.ui.common.uicommon.model.DeferredModelCommandInvoker$1.execute(DeferredModelCommandInvoker.java:44)
        at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:164) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.$flushPostEventPumpCommands(SchedulerImpl.java:336) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:76) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:137) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
        at Unknown.eval(webadmin-0.js@54)
        at Unknown.eval(webadmin-0.js@50)
        at Unknown.eval(webadmin-0.js@53)


Version-Release number of selected component (if applicable):
4.0.5.4-0.1.el7ev

How reproducible:
100%

Steps to Reproduce:
1. Open any dialog window in the webadmin ui, it can be: new host, new cluster, new dc, new vm and so on..
2. Close it with 'x' sign

Actual results:
ui exception is thrown is the front ui

Expected results:
Should work as expected

Comment 1 Red Hat Bugzilla Rules Engine 2016-10-31 04:03:48 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Michal Skrivanek 2016-10-31 06:21:23 UTC
Seems related to bug 1390000 without clicking on "x". If that's the case it should block 4.0.5

Comment 3 Yaniv Kaul 2016-10-31 06:23:41 UTC
If you can get debuginfo installed, we can get a full stack. Please provide it.

Comment 4 Michael Burman 2016-10-31 06:53:07 UTC
Created attachment 1215683 [details]
logs

Comment 5 Yaniv Kaul 2016-10-31 07:01:31 UTC
(In reply to Michael Burman from comment #4)
> Created attachment 1215683 [details]
> logs

copy-paste of the stack to bugzilla to allow future search:
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 __gwt$exception: <skipped>: Cannot read property 'Tc' of undefined
	at org.ovirt.engine.ui.common.widget.AbstractUiCommandButton.$cleanup(AbstractUiCommandButton.java:108)
	at org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderPopupView_DriverImpl.$cleanup(ProviderPopupView_DriverImpl.java:62)
	at org.ovirt.engine.ui.webadmin.section.main.view.popup.provider.ProviderPopupView.cleanup(ProviderPopupView.java:204)
	at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.$hideAndUnbind(AbstractModelBoundPopupPresenterWidget.java:272)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler.$handleWindowModelChange(ModelBoundPopupHandler.java:80)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler$1.eventRaised(ModelBoundPopupHandler.java:61)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:114)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$onPropertyChanged(Model.java:470)
	at org.ovirt.engine.ui.uicommonweb.models.Model.onPropertyChanged(Model.java:470)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$setWindow(Model.java:92)
	at org.ovirt.engine.ui.uicommonweb.models.providers.EditProviderModel.executeCommand(EditProviderModel.java:128)
	at org.ovirt.engine.ui.uicommonweb.UICommand.$execute(UICommand.java:163)
	at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget$6.onClick(AbstractModelBoundPopupPresenterWidget.java:334)
	at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:55) [gwt-servlet.jar:]
	at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:76) [gwt-servlet.jar:]
	at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173) [gwt-servlet.jar:]

Comment 7 Oved Ourfali 2016-10-31 11:32:40 UTC
*** Bug 1390000 has been marked as a duplicate of this bug. ***

Comment 8 Pavel Novotny 2016-11-02 15:47:38 UTC
Verified in:
rhevm-4.0.5.5-0.1.el7ev.noarch
ovirt-engine-webadmin-portal-4.0.5.5-0.1.el7ev.noarch

Closing a modal dialog via 'X' button or Esc key no longer throws UI exception.