Author: darran.lofthouse(a)jboss.com
Date: 2008-08-01 12:22:44 -0400 (Fri, 01 Aug 2008)
New Revision: 7990
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
Log:
[JBPAPP-1034] Incorrect schema file url for nested wsdls.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-08-01
15:38:35 UTC (rev 7989)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP03/src/main/java/org/jboss/ws/core/server/WSDLRequestHandler.java 2008-08-01
16:22:44 UTC (rev 7990)
@@ -136,6 +136,8 @@
if (resPath != null && resPath.indexOf("/") >
0)
{
String resParent = resPath.substring(0,
resPath.lastIndexOf("/"));
+
+ // replace parent traversal, results in resParent == null when
successfully executed
while (orgLocation.startsWith("../") &&
resParent != null)
{
if (resParent.indexOf("/") > 0)
@@ -151,6 +153,10 @@
resParent = null;
}
}
+
+ // no parent traversal happend
+ if(resParent!=null)
+ newResourcePath = resParent +"/"+ orgLocation;
}
String reqPath = reqURL.getPath();
Show replies by date