Skip to content

Commit

Permalink
Mentioned invalid in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
piyumaldk committed Mar 22, 2024
1 parent 1336556 commit 4ff95f8
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 load Wsdl File. File path is outside target directory");
throw new IOException("Attempt to load invalid Wsdl File. File path is outside target directory");
}
return FileUtils.readFileToByteArray(file);
}
Expand Down

0 comments on commit 4ff95f8

Please sign in to comment.