Skip to content

Commit

Permalink
Fixed the error message of loadWsdlFile
Browse files Browse the repository at this point in the history
  • Loading branch information
piyumaldk committed Mar 22, 2024
1 parent 71a52ed commit 1336556
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ private static byte[] loadWsdlFile(String pathToArchive, APIDTO apiDto) throws I
File file = new File(pathToWsdl);
String canonicalPath = file.getCanonicalPath();
if (!canonicalPath.startsWith(new File(pathToArchive).getCanonicalPath())) {
throw new IOException("Attempt to upload invalid zip archive. File path is outside target directory");
throw new IOException("Attempt to load Wsdl File. File path is outside target directory");
}
return FileUtils.readFileToByteArray(file);
}
Expand Down

0 comments on commit 1336556

Please sign in to comment.