Changes between Initial Version and Version 1 of Ticket #12969
- Timestamp:
- Jan 3, 2018, 4:34:00 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12969 – Description
initial v1 3 3 It's ok with web UI, so not sure this is a bug or feature. But it does bring trouble to other components which rely on query system, such as XMLRPC plugin. Suppose you query through xmlrpc with max=20&page=1 and 20 results returned, then query with max=20&page=2 but another 20 results returned, which is not quite reasonable. 4 4 5 How to reproduce: 6 Visit here: [https://trac.edgewall.org/query?summary=~query+paging+problem&page=100&max=1] 7 8 Related code: 5 9 {{{ 6 10 if self.num_items <= self.max: … … 13 17 sql += " LIMIT %d OFFSET %d" % (max, self.offset) 14 18 if (self.page > int(ceil(float(self.num_items) / self.max)) and 15 self.num_items != 0): 19 self.num_items != 0): 20 #this should not depend of has_more_pages condition 16 21 raise TracError(_("Page %(page)s is beyond the number of " 17 22 "pages in the query", page=self.page))