You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Amila Maharachchi (JIRA)" <ji...@apache.org> on 2012/09/01 19:50:07 UTC

[jira] [Commented] (SYNAPSE-908) VFSTransportListener unable to get the lock to a file when there is a # in the FTP/SFTP server password

    [ https://issues.apache.org/jira/browse/SYNAPSE-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446766#comment-13446766 ] 

Amila Maharachchi commented on SYNAPSE-908:
-------------------------------------------

Locks are acquired via the VFSUtils#acquireLock() method. This has the following method.

String fullPath = fo.getURL().toString();

This getURL() method always creates a Java URL class object and return it. But the Java URL class separates the url if there is a # and considers the rest of the url as a reference part (see the URL.java).

But instead of this, we can use

String fullPath = fo.getName().getURI(); which returns the correct URI. 
                
> VFSTransportListener unable to get the lock to a file when there is a # in the FTP/SFTP server password
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-908
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-908
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1
>            Reporter: Amila Maharachchi
>              Labels: vfs
>             Fix For: FUTURE
>
>         Attachments: SYNAPSE-908.patch
>
>
> When trying to process files in a FTP or SFTP location, if the account password has a # in it, then transport listener is unable to acquire a lock for the file to be processed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org