Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2162

[PATCH] Fix for Paginator when accessing out of bounds Pagination page

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.10, 2.1.11
    • None
    • Blocks: (Undefined)
    • None
    • Patch available

    Description

      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 seems 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 pages worth of data to paginate)
      after patch, returns ResourceNotFound/404.

      Attachments

        1. paginator.diff
          1 kB
          Drew Buschhorn
        2. screenshot-1.jpg
          143 kB
          Drew Buschhorn

        Activity

          This comment will be Viewable by All Users Viewable by All Users

          People

            Unassigned Unassigned
            dbuschho Drew Buschhorn

            Dates

              Created:
              Updated:

              Slack

                Issue deployment