commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23560] New: - FTPClient.storeFile(...) should return status information
Date Thu, 02 Oct 2003 11:31:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23560

FTPClient.storeFile(...) should return status information

           Summary: FTPClient.storeFile(...) should return status
                    information
           Product: Commons
           Version: 1.0 Final
          Platform: All
               URL: http://jakarta.apache.org/commons/net/apidocs/org/apache
                    /commons/net/ftp/FTPClient.html#storeFile(java.lang.Stri
                    ng, java.io.InputStream)
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: znerd@FreeBSD.org


The storeFile method is defined as follows in the FTPClient class: 
 
boolean storeFile(String, InputStream) 
 
The return value is a simple yes/no indicating if the thing succeeded. This interface is too

simple for real-world applications. If the upload fails, then the FTP server normally returns
a 
status code and a description of the error. 
 
For example: 
 
550 xins-0.126.tar.gz: Overwrite permission denied 
 
Suggestion: 
1) Deprecated the current storeFile(String,InputStream) that returns a boolean 
2) Add a method storeFile(InputStream local, String remote) that returns the status code and

description returned by the server (exact return type to be determined)

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


Mime
View raw message