Tal Nisan has uploaded a new change for review. Change subject: webadmin: Fix ClassCastException in StorageListModel ......................................................................
webadmin: Fix ClassCastException in StorageListModel Due to a change introduced in patch 27578 the GetHostsForStorageOperation query returns a LinkedList instead of an ArrayList, StorageListModel wrongly casted the result explicitely to ArrayList which resulted in a ClassCastException making it impossible to remove a storage domain Change-Id: I8d16d99b51dbc55be1805c832f79bdf83c1d6764 Signed-off-by: Tal Nisan <tni...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/36325/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java index d83e042..48139d4 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java @@ -778,7 +778,7 @@ StorageListModel storageListModel = (StorageListModel) array[0]; RemoveStorageModel removeStorageModel = (RemoveStorageModel) array[1]; StorageDomain storage = (StorageDomain) storageListModel.getSelectedItem(); - ArrayList<VDS> hosts = (ArrayList<VDS>) returnValue; + List<VDS> hosts = (List<VDS>) returnValue; removeStorageModel.getHostList().setItems(hosts); removeStorageModel.getHostList().setSelectedItem(Linq.firstOrDefault(hosts)); removeStorageModel.getFormat().setEntity(storage.getStorageDomainType().isDataDomain()); -- To view, visit http://gerrit.ovirt.org/36325 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8d16d99b51dbc55be1805c832f79bdf83c1d6764 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <tni...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches