Edgewall Software
Modify

Opened 5 weeks 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)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Jun Omae.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.