Bug 1310071 - Importing external network with name duplicated by existing network causes unhandled UI error
Summary: Importing external network with name duplicated by existing network causes un...
Keywords:
Status: CLOSED DUPLICATE of bug 1310074
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: bugs@ovirt.org
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-19 11:37 UTC by Marcin Mirecki
Modified: 2016-02-19 11:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-19 11:41:06 UTC
oVirt Team: Network
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Marcin Mirecki 2016-02-19 11:37:47 UTC
When a network from an external provider is imported, and there already exists a network with such a name in the system, the UI breaks due to an unhandled error.

Steps to Reproduce:
1. Create network <network_name> in ovirt.
2. Add external network provider containing a network <network_name>.
3. Open external networks import dialog.
4. Try to import the network with duplicated name <network_name>
5. Unhandled GWT exception occurs.
 
Cause:

ImportNetworksModel.onProviderChosen -> onSuccess(Object model, Object returnValue)  line 153
The return value passed in, is a map external_network:{set of data centers}
For a duplicated network {set of data centers} is empty, which will cause an NPE exception when the Import button is pressed.
This will be in:
ImportNetworksModel.onImport (line 244) -> externalNetwork.getDataCenters().getSelectedItem()

Comment 1 Marcin Mirecki 2016-02-19 11:41:06 UTC
Duplicate of 1310074
(browser refresh problems)

*** This bug has been marked as a duplicate of bug 1310074 ***


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