下载接口修改,测试用例补齐

This commit is contained in:
even 2025-07-24 16:06:00 +08:00
parent f983c3d2c8
commit d22f86658f
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class SftpFileController {
public void downloadFile( public void downloadFile(
@RequestParam String remoteFilePath, @RequestParam String remoteFilePath,
HttpServletResponse response) { HttpServletResponse response) {
remoteFilePath = URLDecoder.decode(remoteFilePath,StandardCharsets.UTF_8);
sftpFileService.downloadFile( sftpFileService.downloadFile(
remoteFilePath, response); remoteFilePath, response);
} }

View File

@ -203,7 +203,7 @@ public class TestCaseGenerationWorker extends DockerWorker {
String seedTarget = AFL_VOLUME_WORK_DIR_PREFIX+File.separator+seedPath+File.separator+tempFile.getName(); String seedTarget = AFL_VOLUME_WORK_DIR_PREFIX+File.separator+seedPath+File.separator+tempFile.getName();
String seedDir = AFL_VOLUME_WORK_DIR_PREFIX+File.separator+seedPath; String seedDir = AFL_VOLUME_WORK_DIR_PREFIX+File.separator+seedPath;
append(context,"上传模糊测试种子压缩包到指定工作目录:"+seedDir); append(context,"上传模糊测试种子压缩包到指定工作目录:"+seedDir);
sftp.put(fis,seedDir); sftp.put(fis,seedTarget);
sftp.disconnect(); sftp.disconnect();
append(context,"解压种子到指定工作目录"+seedDir); append(context,"解压种子到指定工作目录"+seedDir);
String cmd = "unzip -o " + seedTarget + " -d " + seedDir; String cmd = "unzip -o " + seedTarget + " -d " + seedDir;