Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 88533 invoked from network); 16 Jan 2008 00:38:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2008 00:38:00 -0000 Received: (qmail 23524 invoked by uid 500); 16 Jan 2008 00:37:47 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 23451 invoked by uid 500); 16 Jan 2008 00:37:47 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 23425 invoked by uid 99); 16 Jan 2008 00:37:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2008 16:37:47 -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; Wed, 16 Jan 2008 00:37:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4B4E71425E for ; Tue, 15 Jan 2008 16:37:34 -0800 (PST) Message-ID: <25134241.1200443854867.JavaMail.jira@brutus> Date: Tue, 15 Jan 2008 16:37:34 -0800 (PST) From: =?utf-8?Q?J=C3=B6rg_Heinicke_=28JIRA=29?= To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-2162) [PATCH] Fix for Paginator when accessing out of bounds Pagination page In-Reply-To: <2656369.1200418175255.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-2162?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D125= 59305#action_12559305 ]=20 J=C3=B6rg Heinicke commented on COCOON-2162: --------------------------------------- Instead of a 404 I would rather send the last page if the requested page nu= mber is greater than the last page number and the first page if it is less = than the first page 0 or 1 (depends on whether index is 0 or 1-based). > [PATCH] Fix for Paginator when accessing out of bounds Pagination page > ---------------------------------------------------------------------- > > Key: COCOON-2162 > URL: https://issues.apache.org/jira/browse/COCOON-2162 > Project: Cocoon > Issue Type: Improvement > Components: Blocks: (Undefined) > Affects Versions: 2.1.10, 2.1.11 > Reporter: Drew Buschhorn > Priority: Minor > Attachments: paginator.diff, screenshot-1.jpg > > > The Paginator transformer for apache cocoon will allow out of page-range = requests. > I've added the below logic-test into my own copy of cocoon, and that seem= s to fix the problem. > Please let me know if you think 1. this is valid and 2. that it should be= placed into svn for the 2.1.x version of cocoon. > Example: > http://localhost/samples/paginator/text(5) > will return a valid empty file before patch (despite there being only 4 p= ages worth of data to paginate) > after patch, returns ResourceNotFound/404. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.