sympa
sympa copied to clipboard
Sympa "viewlogs" discards date range
Version
6.2.72
Installation method
My own rpm, derived from the "official" rpm for RHEL 7.
Expected behavior
When a list owner searches the logs on their list they can provide a date range. Sympa will show the first 25 results which match this date range (assuming that the list owner keeps the default "Page Size" of 25). The date range should be preserved when they click the "next page" link at the very bottom of the page.
Actual behavior
The next page link is of the form:
https://lists.cam.ac.uk/sympa/viewlogs/[listname]/2/25/?type=message
which shows page 2 out of 25 for all results on that list, without any date range information in the GET URL. Consequently, the data range is discarded and page 2 of all results is shown.
You can either show the first page of results in a given date range, or one page out of all results, but not both at the same time. As a workaround I guess that you could ask for 500 results on a single page with a date range.
Steps to reproduce
- Select the logs tab on a list where you are an owner which has lots of log information.
- Specify some search terms, including a date range and the default page size of 25 results and click "View"
- You should see the first 25 results matching these criteria. At the very bottom of the page there is "page 1 / N" followed by a button to show the next page of results.
- Click the next page button.
- The data range has been lost, so the second page of all available results is shown instead.