From 4ff95f8073663c398128d51b0bea7c8c5b484fc2 Mon Sep 17 00:00:00 2001 From: piyumaldk Date: Fri, 22 Mar 2024 10:21:21 +0530 Subject: [PATCH] Mentioned invalid in the error message --- .../rest/api/publisher/v1/common/mappings/ImportUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/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 b/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 index fd8c2fb0d04d..b4a554d76652 100644 --- a/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 +++ b/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 @@ -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); }