ACS-11995 Fix badSourceFilename regression and upgrade Spring Boot to 4.0.7 (#1303)

This commit is contained in:
tathagta15
2026-07-07 14:08:13 +05:30
committed by GitHub
parent 76204dd484
commit 7f0b60a342
2 changed files with 3 additions and 4 deletions
@@ -107,8 +107,8 @@ public class FileManager
*/
private static String checkFilename(boolean source, String filename)
{
filename = filename == null ? "" : new File(filename).getName();
if (filename.isEmpty())
filename = getFilename(filename);
if (filename == null || filename.isEmpty())
{
String sourceOrTarget = source ? "source" : "target";
HttpStatus statusCode = source ? BAD_REQUEST : INTERNAL_SERVER_ERROR;