Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.1.10, 2.1.11
-
None
-
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.
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.