Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12969


Ignore:
Timestamp:
Jan 3, 2018, 4:34:00 PM (6 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12969 – Description

    initial v1  
    33It'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.
    44
     5How to reproduce:
     6Visit here: [https://trac.edgewall.org/query?summary=~query+paging+problem&page=100&max=1]
     7
     8Related code:
    59{{{
    610        if self.num_items <= self.max:
     
    1317            sql += " LIMIT %d OFFSET %d" % (max, self.offset)
    1418            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
    1621                raise TracError(_("Page %(page)s is beyond the number of "
    1722                                  "pages in the query", page=self.page))