Author: hiranya
Date: Fri Jul 19 21:05:53 2013
New Revision: 1505019

URL: http://svn.apache.org/r1505019
Log:
Applying the patch for SYNAPSE-908. VFS transport doesn't parse FTP passwords 
with # signs properly.

Modified:
    
synapse/trunk/java/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java

Modified: 
synapse/trunk/java/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java?rev=1505019&r1=1505018&r2=1505019&view=diff
==============================================================================
--- 
synapse/trunk/java/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java
 (original)
+++ 
synapse/trunk/java/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSUtils.java
 Fri Jul 19 21:05:53 2013
@@ -124,7 +124,7 @@ public class VFSUtils extends BaseUtils 
             // check whether there is an existing lock for this item, if so it 
is assumed
             // to be processed by an another listener (downloading) or a 
sender (uploading)
             // lock file is derived by attaching the ".lock" second extension 
to the file name
-            String fullPath = fo.getURL().toString();
+            String fullPath = fo.getName().getURI();
             int pos = fullPath.indexOf("?");
             if (pos != -1) {
                 fullPath = fullPath.substring(0, pos);
@@ -183,7 +183,7 @@ public class VFSUtils extends BaseUtils 
      */
     public static void releaseLock(FileSystemManager fsManager, FileObject fo) 
{
         try {
-            String fullPath = fo.getURL().toString();
+            String fullPath = fo.getName().getURI();
             int pos = fullPath.indexOf("?");
             if (pos > -1) {
                 fullPath = fullPath.substring(0, pos);


Reply via email to