You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/10/16 08:02:01 UTC

DO NOT REPLY [Bug 13676] New: - FilePart fails to send data on second call to send

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=13676>.
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=13676

FilePart fails to send data on second call to send

           Summary: FilePart fails to send data on second call to send
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HttpClient
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: adrian@ephox.com


When using a FilePart with the MultipartPostMethod and a server that requires 
authentication, the first call to FilePart.send() sends the data correctly and 
HttpClient receives an unauthorized response from the server.  If HttpClient is 
set to automatically handle authentication attempts it then attempts to send 
the FilePart again at which time the InputStream FilePart reads from is empty 
so it doesn't send any data.

Due to this, the data actually sent by HttpClient doesn't match the content 
length specified so the server continues to wait for the data and doesn't 
respond, leaving HttpClient to timeout while waiting for a response.

This occurs with the latest source from CVS as of 16 October 2002.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>