Skip to content

Commit b70bc92

Browse files
committed
CS-14907: Only allow download volume for uploaded volumes
This fixes an issue where an uploaded volume that hasn't been moved to primary storage yet is downloaded, causing an error. This adjusts the actionFilter to fix this. Original patch by: Pranav Saxena <pranav.saxena@citrix.com> reviewed-by: Brian Federle <brian.federle@citrix.com>
1 parent de04b8c commit b70bc92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/scripts/storage.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@
13101310
allowedActions.push("recurringSnapshot");
13111311
}
13121312
if(jsonObj.state != "Allocated") {
1313-
if(jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) {
1313+
if((jsonObj.vmstate == "Stopped" || jsonObj.virtualmachineid == null) && jsonObj.state != "Ready") {
13141314
allowedActions.push("downloadVolume");
13151315
}
13161316
}

0 commit comments

Comments
 (0)