Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit bf45e6d

Browse files
srinivaskrishnanyaminikb
authored andcommitted
Fix for #21760-A local packaged file is deleted when deploying from the web console (#21827)
1 parent 9176506 commit bf45e6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

appserver/admingui/common/src/main/resources/applications/uploadButtons.inc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@
8181
propertyList="$attribute{newList}"
8282
targets = "#{pageSession.selectedTargets}"
8383
);
84-
deleteFileFromTempDir(deleteTempFile="$attribute{filePath}");
85-
gf.redirect(page="#{request.contextPath}/common/removeFrame.jsf?#{pageSession.listPageLink}&#{extraArgs}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}&bare=true");
84+
if( ${needUpload}) {
85+
gf.logger(logString="Deleting the file uploaded to Temp Directory", level="INFO");
86+
deleteFileFromTempDir(deleteTempFile="$attribute{filePath}");
87+
}
88+
gf.redirect(page="#{request.contextPath}/common/removeFrame.jsf?#{pageSession.listPageLink}&#{extraArgs}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}&bare=true");
8689
/>
8790
</sun:button>
8891

0 commit comments

Comments
 (0)