|
Created an attachment (id=17460)
Patch to solve the problem of extension FTP to other protocol... This is the patch that make the variables, protected, this is the only thing i (In reply to comment #1)
> What do you think of this, Daniel? Is there a good reason NOT to make these > data members protected or provide setters/getters for them? > > An alternative idea, if Jose is willing, might be for Jose to make local > modifications and then, once he's gotten his FTPSClient working, submit it as a > patch to be added to commons-net. I submit the patch. Jose, you misunderstood me. I was asking if you would be willing to submit your
FTPSClient as a patch. It would have been a nice extension to commons-net if it worked out. But I should have read your submission more carefully. I didn't realize that So, back to you, Daniel. Do you have any objections to Jose's patch. I made the change, but added documentation.
(In reply to comment #5)
> I made the change, but added documentation. I read your documentation but it raises a question. Are you meaning to suggest (In reply to comment #6)
> (In reply to comment #5) > > I made the change, but added documentation. > > I read your documentation but it raises a question. Are you meaning to suggest > that the RIGHT way to do this is to overwrite connectAction()? > (In reply to comment #6) Hi, i write to Paul Ferraro, the developer of UFSC and suggest that he could FTPS its very similar to FTP, the most significant diferences are: I'll tell you, when he responds me. (In reply to comment #7)
my modifications of his code. I'm waiting his anwers. > > FTPS its very similar to FTP, the most significant diferences are: > javax.net.ssl.SSLSocket, certificates, and after connect sends AUTH SSL, that > negotiates the secure method connection, and handshake... his implementation, > don't overwrite, only use the variables, to assing them "ssl streams" of the SSl > socket. > > I'll tell you, when he responds me. So if you didn't need to change these variables, all you really needed was a Jose, it would be great if we could bring FTPS into commons-net. (In reply to comment #6)
> I read your documentation but it raises a question. Are you meaning to suggest > that the RIGHT way to do this is to overwrite connectAction()? I was only trying to indicate where and how the variable was assigned in the (In reply to comment #8)
> So if you didn't need to change these variables, all you really needed was a > getter method. Daniel, maybe that would be a better solution? I don't imagine > you're too comfortable with exposing stuff that begins and ends with underscores? Since the underlying SocketClient stream members are already protected, At any rate, I don't have any strong feelings about the matter. In general, Created an attachment (id=17483)
Patch that make __fileType protected in FTPClient. The implements of FTPSClient, need that __fileType be protected, because, need Created an attachment (id=17484)
Implementation of FTPSClient. Paul Ferraro change the license of his proyecto to Apache License V2.0. Then I (In reply to comment #12)
> Created an attachment (id=17484) [edit] > Implementation of FTPSClient. > > Paul Ferraro change the license of his proyecto to Apache License V2.0. Then I > submit the 3 class that implements FTPSClient, and fourth class, ftps, that use > this implementation. Thank you, Jose and Paul. I have a few questions about the submission. 1. You are importing com.sun.net.ssl.X509TrustManagern and 2. Does this import require importing any additional libraries, or is this 3. FTPSClient overrides the retrieveFile() method from FTPClient. I am not an 4. Assuming all the above are answered, we would like some JUnit tests to be 5. Finally, the files need to have the Apache License. Please do not take this the wrong way. I am being very demanding and legalistic I also think that this is not the place for this discussion to be continued. I checked his patches and read RFC2228, RFC4217 and some internet web sites.
It would be great if following things are done for the future work of FTPS. 1) implicit mode. 2) It can not specify multiple keystores and/or trustmanagers. 3) The password to access KeyStore can not change. 4) It can not change the data connection security level(PROT command). 5) It can not change the protected data bufferes(PBSZ command). 6) The X509TrustManager should be made by implements (In reply to comment #8) Created an attachment (id=17488)
Implementation of FTPSClient. Added the commented modification... (In reply to comment #13)
> 1. You are importing com.sun.net.ssl.X509TrustManagern and > com.sun.net.ssl.SSLContext. Are these allowable imports under the terms of the > Apache License? I don't know the answer, it is a question. We have been > recently hit with licensing questions and I don't want to go through this again > without checking first. I really don't know about legal, this import its into JSSE > 2. Does this import require importing any additional libraries, or is this This import require Java 1.3 & JSSE. > 3. FTPSClient overrides the retrieveFile() method from FTPClient. I am not an Now, following the paul advice, now only overwrite openDataConnection > 4. Assuming all the above are answered, we would like some JUnit tests to be I attach one junit, to test, with a "local ftps server" of the "junit machine". > 5. Finally, the files need to have the Apache License. Add. > Please do not take this the wrong way. I am being very demanding and legalistic Don't worry... and thanks for all. (In reply to comment #14)
> I checked his patches and read RFC2228, RFC4217 and some internet web sites. > It would be great if following things are done for the future work of FTPS. > > 1) implicit mode. > There is the two mode of FTPS to connect it securely. (implicit/explicit) > It is implemented only the explicit mode. For future work... > 2) It can not specify multiple keystores and/or trustmanagers. It was implemented in code of 2006-01-22 19:14. > 3) The password to access KeyStore can not change. Implemented now. > 4) It can not change the data connection security level(PROT command). Implemented now. > 5) It can not change the protected data bufferes(PBSZ command). Implemented now. > 6) The X509TrustManager should be made by implements I need that ftps works with JDK1.3, and dont mind import JSSE... Thanks for all your comment. TO: EVERYONE
PLEASE LET'S NOT HAVE ANY MORE DISCUSSIONS RELATED TO THE POSSIBLE ADDITION OF This bug is now closed. Comments related to the lively discussion of adding |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data members protected or provide setters/getters for them?
An alternative idea, if Jose is willing, might be for Jose to make local
modifications and then, once he's gotten his FTPSClient working, submit it as a
patch to be added to commons-net.