sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
244 stars 96 forks source link

Sympa "viewlogs" discards date range #1721

Open dpc22 opened 1 year ago

dpc22 commented 1 year ago

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

1) Select the logs tab on a list where you are an owner which has lots of log information. 2) Specify some search terms, including a date range and the default page size of 25 results and click "View" 3) 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. 4) Click the next page button. 5) The data range has been lost, so the second page of all available results is shown instead.