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

Bug 1487312

Summary: FE NPE when selecting a snapshot row
Product: [oVirt] ovirt-engine Reporter: jniederm
Component: Frontend.WebAdminAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, gshereme, lsvaty
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:36: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:
Attachments:
Description Flags
ui.log none

Description jniederm 2017-08-31 15:31:03 UTC
Created attachment 1320645 [details]
ui.log

Description of problem:
Vojtobox pops up (FE error box) when a snapshot is selected right after viewing Task.

Version-Release number of selected component (if applicable):
current master, commit f2d4194e5c

How reproducible:
100%

Steps to Reproduce:
1. Create a VM
2. Refresh webadmin page
3. Show VM detail
4. Select Snapshots tab
5. Click Tasks icon in upper right corner
6. Click Tasks icon again to close Tasks view
7. Select arbitrary row in snapshot list, e.g. "Active VM"

Actual results:
Vojtobox pops up, see attached ui.log

Expected results:
snapshot row selected

Additional info:

Comment 1 Greg Sheremeta 2017-08-31 22:58:30 UTC
It ends up that VmSnapshotListModel's entityModel.entity becomes null when Tasks is opened and closed. VmSnapshotListViewItem line 202, listModel.getEntity() fails.

Alexander should be way more familiar with this code.

Comment 2 Petr Matyáš 2017-10-09 14:30:29 UTC
Verified on ovirt-engine-4.2.0-0.0.master.20171009063348.gitf2b70a1.el7.centos.noarch

Comment 3 Sandro Bonazzola 2017-12-20 11:36:09 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.