Modify ↓
Opened 3 months ago
#13777 assigned defect
OverflowError is raised when max parameter of query page is too large
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | query system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
2024-08-19 07:51:21,560 Trac[main] ERROR: [192.168.11.100] Internal Server Error: <RequestWithSession "GET '/query?id=!0&max=1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'">, referrer None Traceback (most recent call last): File "/venv/trac16/lib/python3.10/site-packages/trac/web/main.py", line 609, in dispatch_request dispatcher.dispatch(req) File "/venv/trac16/lib/python3.10/site-packages/trac/web/main.py", line 301, in dispatch raise e File "/venv/trac16/lib/python3.10/site-packages/trac/web/main.py", line 247, in dispatch resp = chosen_handler.process_request(req) File "/venv/trac16/lib/python3.10/site-packages/trac/ticket/query.py", line 1004, in process_request return self.display_html(req, query) File "/venv/trac16/lib/python3.10/site-packages/trac/ticket/query.py", line 1121, in display_html data = query.template_data(context, tickets, orig_list, orig_time, req) File "/venv/trac16/lib/python3.10/site-packages/trac/ticket/query.py", line 811, in template_data results = Paginator(tickets, File "/venv/trac16/lib/python3.10/site-packages/trac/util/presentation.py", line 373, in __init__ items, num_items, num_pages = prepared_paginate(items, num_items, File "/venv/trac16/lib/python3.10/site-packages/trac/util/presentation.py", line 285, in prepared_paginate num_pages = int(ceil(float(num_items) / max_per_page)) OverflowError: int too large to convert to float
>>> 42. / int('1' + '0' * 309) Traceback (most recent call last): File "<stdin>", line 1, in <module> OverflowError: int too large to convert to float
Attachments (0)
Note:
See TracTickets
for help on using tickets.