Author: midon
Date: Wed Sep 23 23:05:38 2009
New Revision: 818307

URL: http://svn.apache.org/viewvc?rev=818307&view=rev
Log:
make sure we use the right file separator when comparing 2 paths

Modified:
    
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java

Modified: 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java?rev=818307&r1=818306&r2=818307&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/service/DeploymentBrowser.java
 Wed Sep 23 23:05:38 2009
@@ -46,6 +46,7 @@
     private AxisConfiguration _config;
     private File _appRoot;
 
+
     public DeploymentBrowser(ProcessStoreImpl store, AxisConfiguration config, 
File appRoot) {
         _store = store;
         _config = config;
@@ -168,6 +169,8 @@
                             List<File> files = 
_store.getProcessConfiguration(processes.get(0)).getFiles();
                             for (final File file : files) {
                                 String relativePath = 
requestURI.substring(deplUri + 12 + 9 + segments[1].length());
+                                // replace slashes with the correct file 
separator so the match below is not always false
+                                relativePath = relativePath.replace('/', 
File.separatorChar);
                                 if (file.getPath().endsWith(relativePath)) {
                                     renderXml(response, new DocBody() {
                                         public void render(Writer out) throws 
IOException {


Reply via email to