Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 39895 invoked from network); 30 Oct 2002 23:09:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Oct 2002 23:09:26 -0000 Received: (qmail 29385 invoked by uid 97); 30 Oct 2002 23:10:20 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 29286 invoked by uid 97); 30 Oct 2002 23:10:18 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 29238 invoked by uid 50); 30 Oct 2002 23:10:17 -0000 Date: 30 Oct 2002 23:10:17 -0000 Message-ID: <20021030231017.29232.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 14108] New: - MultipartPost closes input stream X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=14108 MultipartPost closes input stream Summary: MultipartPost closes input stream 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 This is something of a collection of issues that are all interrelated. 1. MultipartPost calls close on the outputstream it retrieved from HttpConnection which causes an exception to be thrown later on. This call should be replaced with a call to flush(). 2. The MultipartPost classes do not have any logging in them. We should add trace statements at a minimum. 3. new FilePart(String, File) throws a null pointer exception. 4. The tests in TestPartsNoHost are broken. I'll attach patches for these fixes in a moment, broken down as much as possible. -- To unsubscribe, e-mail: For additional commands, e-mail: