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

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

    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

          People

            Unassigned Unassigned
            dbuschho Drew Buschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: