You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Tom (JIRA)" <ji...@apache.org> on 2010/03/25 14:24:27 UTC

[jira] Created: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

VFS does not support FTP servers with non Latin-1 control encoding
------------------------------------------------------------------

                 Key: VFS-305
                 URL: https://issues.apache.org/jira/browse/VFS-305
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Java client talking to Java FTP server (Alfresco)
            Reporter: Tom
            Priority: Minor


It should be possible to set the client.setControlEncoding with a sensible value.

Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

Posted by "Dmytro Polivenok (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmytro Polivenok updated VFS-305:
---------------------------------

    Attachment: VFS-305(commands).patch

Faced issue related to invoking commands on files with non UTF encoding (create, rename, move, etc..) :
Commons-net control buffer readers and writers were initialized with DEFAULT_CONTROL_ENCODING = "ISO-8859-1" before setting encoding in FtpClientFactory, so I moved setting control encoding before connect method which creates _controlInput_,_controlOutput_ in FTP class


> VFS does not support FTP servers with non Latin-1 control encoding
> ------------------------------------------------------------------
>
>                 Key: VFS-305
>                 URL: https://issues.apache.org/jira/browse/VFS-305
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java client talking to Java FTP server (Alfresco)
>            Reporter: Tom
>             Fix For: 2.0
>
>         Attachments: VFS-305(commands).patch, VFS-305.patch
>
>
> It should be possible to set the client.setControlEncoding with a sensible value.
> Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

Posted by "Dmytro Polivenok (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930158#action_12930158 ] 

Dmytro Polivenok edited comment on VFS-305 at 11/9/10 10:21 AM:
----------------------------------------------------------------

Faced issue related to invoking commands on files with non UTF encoding (create, rename, move, etc..) :
Commons-net control buffer readers and writers were initialized with DEFAULT_CONTROL_ENCODING = "ISO-8859-1" before setting encoding in FtpClientFactory, so I moved setting control encoding before connect method which creates _controlInput_,_controlOutput_ in FTP class
patch - VFS-305(commands).patch

      was (Author: polivenok):
    Faced issue related to invoking commands on files with non UTF encoding (create, rename, move, etc..) :
Commons-net control buffer readers and writers were initialized with DEFAULT_CONTROL_ENCODING = "ISO-8859-1" before setting encoding in FtpClientFactory, so I moved setting control encoding before connect method which creates _controlInput_,_controlOutput_ in FTP class

  
> VFS does not support FTP servers with non Latin-1 control encoding
> ------------------------------------------------------------------
>
>                 Key: VFS-305
>                 URL: https://issues.apache.org/jira/browse/VFS-305
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java client talking to Java FTP server (Alfresco)
>            Reporter: Tom
>             Fix For: 2.0
>
>         Attachments: VFS-305(commands).patch, VFS-305.patch
>
>
> It should be possible to set the client.setControlEncoding with a sensible value.
> Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved VFS-305.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

I reviewed and applied the patch. Please review and close.

> VFS does not support FTP servers with non Latin-1 control encoding
> ------------------------------------------------------------------
>
>                 Key: VFS-305
>                 URL: https://issues.apache.org/jira/browse/VFS-305
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java client talking to Java FTP server (Alfresco)
>            Reporter: Tom
>             Fix For: 2.0
>
>         Attachments: VFS-305.patch
>
>
> It should be possible to set the client.setControlEncoding with a sensible value.
> Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

Posted by "Tom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom updated VFS-305:
--------------------

    Priority: Major  (was: Minor)

> VFS does not support FTP servers with non Latin-1 control encoding
> ------------------------------------------------------------------
>
>                 Key: VFS-305
>                 URL: https://issues.apache.org/jira/browse/VFS-305
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java client talking to Java FTP server (Alfresco)
>            Reporter: Tom
>
> It should be possible to set the client.setControlEncoding with a sensible value.
> Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (VFS-305) VFS does not support FTP servers with non Latin-1 control encoding

Posted by "Dmytro Polivenok (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmytro Polivenok updated VFS-305:
---------------------------------

    Attachment: VFS-305.patch

Attached patch. After applying you will able to set encoding using:
FtpFileSystemConfigBuilder.getInstance().setControlEncoding(opts, "UTF-8");

> VFS does not support FTP servers with non Latin-1 control encoding
> ------------------------------------------------------------------
>
>                 Key: VFS-305
>                 URL: https://issues.apache.org/jira/browse/VFS-305
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Java client talking to Java FTP server (Alfresco)
>            Reporter: Tom
>         Attachments: VFS-305.patch
>
>
> It should be possible to set the client.setControlEncoding with a sensible value.
> Being able to set that value is a must, but a FTPClient (commons-net) that somehow can detect what control encoding is used, would automagically solve a lot of issues. FileZilla automatically detects that Alfresco's FTP server is doing UTF8.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.