Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 98783 invoked from network); 4 Nov 2008 16:55:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2008 16:55:38 -0000 Received: (qmail 12394 invoked by uid 500); 4 Nov 2008 16:55:44 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 12315 invoked by uid 500); 4 Nov 2008 16:55:43 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 12283 invoked by uid 99); 4 Nov 2008 16:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 08:55:43 -0800 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, 04 Nov 2008 16:54:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B1B5234C27A for ; Tue, 4 Nov 2008 08:54:44 -0800 (PST) Message-ID: <1455571753.1225817684502.JavaMail.jira@brutus> Date: Tue, 4 Nov 2008 08:54:44 -0800 (PST) From: "Maciej Baranowski (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-206) Abdera parser fails when InputStream returns data in chunks In-Reply-To: <509656232.1225817444413.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maciej Baranowski updated ABDERA-206: ------------------------------------- Description: We noticed that when InputStream passed to Abder parser does not return all data in one read the parser fails: at java.io.FilterInputStream.read(FilterInputStream.java:111) at java.io.PushbackInputStream.read(PushbackInputStream.java:161) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.read(PeekAheadInputStream.java:126) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:111) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:107) at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.detectEncoding(FOMSniffingInputStream.java:76) at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.(FOMSniffingInputStream.java:52) was: We noticed that when InputStream passed to Abder parser does not return all data at one read the parser fails: at java.io.FilterInputStream.read(FilterInputStream.java:111) at java.io.PushbackInputStream.read(PushbackInputStream.java:161) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.read(PeekAheadInputStream.java:126) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:111) at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:107) at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.detectEncoding(FOMSniffingInputStream.java:76) at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.(FOMSniffingInputStream.java:52) > Abdera parser fails when InputStream returns data in chunks > ----------------------------------------------------------- > > Key: ABDERA-206 > URL: https://issues.apache.org/jira/browse/ABDERA-206 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.3.0 > Reporter: Maciej Baranowski > Fix For: 0.3.0 > > Attachments: AbderaParserFailureTest.java, test.xml > > > We noticed that when InputStream passed to Abder parser does not return all data in one read the parser fails: > at java.io.FilterInputStream.read(FilterInputStream.java:111) > at java.io.PushbackInputStream.read(PushbackInputStream.java:161) > at org.apache.abdera.parser.stax.util.PeekAheadInputStream.read(PeekAheadInputStream.java:126) > at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:111) > at org.apache.abdera.parser.stax.util.PeekAheadInputStream.peek(PeekAheadInputStream.java:107) > at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.detectEncoding(FOMSniffingInputStream.java:76) > at org.apache.abdera.parser.stax.util.FOMSniffingInputStream.(FOMSniffingInputStream.java:52) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.