From dev-return-16607-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Feb 05 10:34:32 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 43187 invoked from network); 5 Feb 2008 10:34:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 10:34:32 -0000 Received: (qmail 86905 invoked by uid 500); 5 Feb 2008 10:34:22 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 86345 invoked by uid 500); 5 Feb 2008 10:34:21 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 86330 invoked by uid 99); 5 Feb 2008 10:34:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 02:34:21 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 10:34:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4606A714070 for ; Tue, 5 Feb 2008 02:34:08 -0800 (PST) Message-ID: <28081450.1202207648284.JavaMail.jira@brutus> Date: Tue, 5 Feb 2008 02:34:08 -0800 (PST) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-1335) bad assumptions on QueryResult.getIterator() semantics in QueryResultNodeIteratorTest.testSkip() In-Reply-To: <31104030.1200931305968.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/JCR-1335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting updated JCR-1335: ------------------------------- Affects Version/s: 1.0 1.0.1 1.1 1.1.1 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.3 1.4 Fix Version/s: 1.4.1 Merged to the 1.4 branch in revision 618603. > bad assumptions on QueryResult.getIterator() semantics in QueryResultNodeIteratorTest.testSkip() > ------------------------------------------------------------------------------------------------ > > Key: JCR-1335 > URL: https://issues.apache.org/jira/browse/JCR-1335 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-jcr-tests > Affects Versions: 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.4 > Reporter: Julian Reschke > Assignee: Julian Reschke > Priority: Minor > Fix For: 1.4.1 > > Attachments: JCR-1335.patch.txt > > > testSkip() assumes that calling getIterator() a second time will return a new iterator of the same size. JSR-170 is silent on this. Forcing a server to implement this essantially means that the query result must be cached until there's no reference to QueryResult anymore. > As this is a test of skip(), not getIterator(), the test should really refetch a new QueryResult in order to obtain a new iterator. > (Note: The issue of the semantics of QueryResult.getIterator should be discussed by the JCR EG.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.