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");

Check warning on line 1638 in components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/ImportUtils.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/ImportUtils.java#L1638

Added line #L1638 was not covered by tests
}
return FileUtils.readFileToByteArray(file);
}
Expand Down

0 comments on commit 4ff95f8

Please sign in to comment.