Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 51954 invoked from network); 17 Mar 2009 16:21:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2009 16:21:13 -0000 Received: (qmail 18598 invoked by uid 500); 17 Mar 2009 16:21:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 18175 invoked by uid 500); 17 Mar 2009 16:21:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 18164 invoked by uid 99); 17 Mar 2009 16:21:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 09:21:11 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 16:21:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8B24B234C003 for ; Tue, 17 Mar 2009 09:20:50 -0700 (PDT) Message-ID: <206875873.1237306850555.JavaMail.jira@brutus> Date: Tue, 17 Mar 2009 09:20:50 -0700 (PDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (VFS-243) HttpRandomAccesContent.getDataInputStream() ignores result of skip() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org HttpRandomAccesContent.getDataInputStream() ignores result of skip() -------------------------------------------------------------------- Key: VFS-243 URL: https://issues.apache.org/jira/browse/VFS-243 Project: Commons VFS Issue Type: Bug Reporter: Sebb HttpRandomAccesContent.getDataInputStream() ignores result of skip() Findbugs says: This method ignores the return value of java.io.InputStream.skip() which can skip multiple bytes. If the return value is not checked, the caller will not be able to correctly handle the case where fewer bytes were skipped than the caller requested. This is a particularly insidious kind of bug, because in many programs, skips from input streams usually do skip the full amount of data requested, causing the program to fail only sporadically. With Buffered streams, however, skip() will only skip data in the buffer, and will routinely fail to skip the requested number of bytes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.