Edgewall Software

Opened 17 years ago

Last modified 12 years ago

#5287 closed defect

ValueError: invalid literal for int(): /path/to/newticket — at Version 2

Reported by: brooke@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: ticket system Version: devel
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Using version 11dev, I receive the above error when trying to create a new ticket. From the log:

<snip>
2007-05-08 15:47:49,056 Trac[main] DEBUG: Dispatching <Request "GET /newticket">
2007-05-08 15:47:49,103 Trac[main] ERROR: invalid literal for int(): projects/isound/newticket
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/web/main.py", line 429, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/web/main.py", line 217, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/ticket/web_ui.py", line 123, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.3/site-packages/Trac-0.11dev_r5354-py2.3.egg/trac/ticket/web_ui.py", line 347, in _process_ticket_request
    id = int(req.args.get('id'))
ValueError: invalid literal for int(): projects/isound/newticket
2007-05-08 15:47:49,366 Trac[chrome] DEBUG: Prepare chrome data for request
</snip>

Change History (2)

comment:1 by brooke@…, 17 years ago

FYI, #5287 & #5286 are related.

comment:2 by Christian Boos, 17 years ago

Description: modified (diff)
Keywords: needinfo added
Priority: highlow
Severity: blockernormal

Ok, here we see: <Request "GET /newticket">

As opposed to #5286, id is not set by TicketModule.match_request, but as we're going into self._process_ticket_request(req) instead of self._process_newticket_request(req) in TicketModule.process_request, this shows that the id is set by some other means.

In #5286, it's projects/isound/report, here it's projects/isound/newticket, so there must be something in your web front-end that adds an id request parameter corresponding to projects/isound plus the value of the GET request.

It must be a misconfiguration of your web front-end, but it would be interesting nevertheless to understand what's going on, in order to see if this is something likely to happen for other people or not.

Note: See TracTickets for help on using tickets.