Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D4C46260 for ; Thu, 16 Jun 2011 11:04:08 +0000 (UTC) Received: (qmail 26962 invoked by uid 500); 16 Jun 2011 11:04:08 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 26939 invoked by uid 500); 16 Jun 2011 11:04:08 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 26931 invoked by uid 99); 16 Jun 2011 11:04:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:04:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 11:04:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 55AD441B35B for ; Thu, 16 Jun 2011 11:03:47 +0000 (UTC) Date: Thu, 16 Jun 2011 11:03:47 +0000 (UTC) From: "Andy Seaborne (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <1492728533.10617.1308222227347.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <630580316.423.1307367478969.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (JENA-72) TSVInput infinite loop and optional binding values not handled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JENA-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Seaborne reopened JENA-72: ------------------------------- Assignee: Paolo Castagna Reopened - does not cope with (illegal) lines of wrong length yet. > TSVInput infinite loop and optional binding values not handled > -------------------------------------------------------------- > > Key: JENA-72 > URL: https://issues.apache.org/jira/browse/JENA-72 > Project: Jena > Issue Type: Bug > Components: ARQ > Reporter: Laurent Pellegrino > Assignee: Paolo Castagna > Labels: tsvinput > Attachments: JENA-72_ARQ_r1136132.patch > > > TSVInput that has been proposed in JENA-69 contains two bugs: > 1) When you attempt to read an empty ResultSet (i.e. a ResultSet that contain no binding) the code will enter in an infinite loop. This issue is really simple to solve. > 2) Optional binding values are not supported, especially with the following ResultSet: > (resultset (?a ?b ?c) > (row (?a 1) (?c 4)) > (row (?a 1) (?b 2) (?c 3))) > it will be serialized as: > a....b....c > 1..........4 > 1....2....3 > When we call tokenizer.next(), we get the next token. The problem is that we are not aware that the tokenizer has consumed two separators (\t), and we cannot detect that the value 4 is associated to the variable c. > Any idea to handle it? -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira