You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicCreateEntityDownloadURLCommand(Stringparent, StringinstallPath, Stringuuid, DataTOdata) { // this constructor is for creating template download url
26
+
publicCreateEntityDownloadURLCommand(Stringparent, StringinstallPath, StringfileName, StringfilePath, DataTOdata) { // this constructor is for creating template download url
27
27
super();
28
28
this.parent = parent; // parent is required as not the template can be child of one of many parents
Copy file name to clipboardExpand all lines: plugins/storage/image/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackImageStoreDriverImpl.java
Copy file name to clipboardExpand all lines: services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java
+4-2
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,8 @@ public CreateEntityDownloadURLAnswer handleCreateEntityURLCommand(CreateEntityDo
268
268
}
269
269
// Create the directory structure so that its visible under apache server root
@@ -290,11 +292,11 @@ public CreateEntityDownloadURLAnswer handleCreateEntityURLCommand(CreateEntityDo
290
292
}
291
293
292
294
// Create a random file under the directory for security reasons.
293
-
Stringuuid = cmd.getExtractLinkUUID();
295
+
Stringfilename = cmd.getFilenameInExtractURL();
294
296
// Create a symbolic link from the actual directory to the template location. The entity would be directly visible under /var/www/html/userdata/cmd.getInstallPath();
0 commit comments