[
https://issues.apache.org/jira/browse/NET-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615722#action_12615722
]
codemonkey commented on NET-227:
--------------------------------
Hmm, that may have been a touch unclear now that I read it, I meant that I
added it to my project and built it, but I didn't add it to the apache
codebase. Wanted to get some input on this before trying to figure out how to
make changes.
> Support for cygwin
> ------------------
>
> Key: NET-227
> URL: https://issues.apache.org/jira/browse/NET-227
> Project: Commons Net
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Client: Windows Server 2003. FTP Server: Tumbleweed
> running on Windows Server 2003 running CYGWIN. Commons net version 1.4.1.
> Reporter: codemonkey
> Fix For: 1.4
>
>
> When the client sends a SYST command, the server responds with "215 Cygwin
> Type: L8". The createFileEntryParser method of the
> DefaultFTPFileEntryParserFactory class does not have an entry in that block
> of if statements there to catch and work with Cygwin. I am using a limited
> set of ftp commands in the project I'm working on, but so far everything
> seems to work fine when I alias Cygwin to unix. I'm not sure if there are
> any other complexities around this, or if there is a better way to do this,
> but I'm sure y'all will know :)
> Here's what I added:
> FTPClientConfig.java
> In the constant definitions at the beginning of the class starting at
> line 140, I added the following:
> /**
> * Identifier by which a unix emulation-based ftp server is known
> throughout
> * the commons-net ftp system.
> */
>
> public static final String SYST_CYGWIN = "CYGWIN";
> DefaultFTPFileEntryParserFactory.java
> In the first catch block starting at line 85 in the createFileEntryParser
> method, I added the following to the existing else if statements:
> else if (ukey.indexOf(FTPClientConfig.SYST_CYGWIN) >= 0)
> {
> parser = createUnixFTPEntryParser();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.