[jbossws-commits] JBossWS SVN: r9855 - stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Wed Apr 22 02:55:40 EDT 2009
Author: richard.opalka at jboss.com
Date: 2009-04-22 02:55:40 -0400 (Wed, 22 Apr 2009)
New Revision: 9855
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
Log:
[JBWS-2437] improving exception message
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2009-04-21 16:30:02 UTC (rev 9854)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2009-04-22 06:55:40 UTC (rev 9855)
@@ -101,17 +101,18 @@
String wsdlDataLoc = serverConfig.getServerDataDir().getCanonicalPath() + File.separatorChar + "wsdl";
//allow wsdl file's parent or server's data/wsdl or overriden wsdl publish directories only
- if (impResourceFile.getCanonicalPath().indexOf(wsdlLocFilePath) >= 0
- || impResourceFile.getCanonicalPath().indexOf(wsdlDataLoc) >= 0
+ String resourceAbsPath = impResourceFile.getCanonicalPath();
+ if (resourceAbsPath.indexOf(wsdlLocFilePath) >= 0
+ || resourceAbsPath.indexOf(wsdlDataLoc) >= 0
|| (wsdlPublishLoc != null
- && impResourceFile.getCanonicalPath().indexOf(new File(new URL(wsdlPublishLoc).getPath()).getCanonicalPath()) >= 0))
+ && resourceAbsPath.indexOf(new File(new URL(wsdlPublishLoc).getPath()).getCanonicalPath()) >= 0))
{
Element wsdlElement = DOMUtils.parse(impResourceFile.toURL().openStream());
wsdlDoc = wsdlElement.getOwnerDocument();
}
else
{
- throw new IOException("Access to this resource is not allowed");
+ throw new IOException("Access to '" + resourceAbsPath + "' resource is not allowed");
}
}
More information about the jbossws-commits
mailing list