Modify ↓
Opened 17 years ago
Closed 17 years ago
#2842 closed defect (fixed)
Hitting "Resubmit for Review" crashes
Reported by: | Owned by: | Sebastian Marek | |
---|---|---|---|
Priority: | normal | Component: | PeerReviewPlugin |
Severity: | normal | Keywords: | |
Cc: | Ben Longden, Rys, Ben Selby, pmitchell | Trac Release: | 0.11 |
Description (last modified by )
Hitting the "Resubmit for Review" causes:
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/codereview/peerReviewNew.py", line 90, in process_request
returnFiles+=struct.Path + "," + struct.Version + "," + struct.LineStart + "," + struct.LineEnd + "#"
TypeError: coercing to Unicode: need string or buffer, int found
Attachments (0)
Change History (2)
comment:1 Changed 17 years ago by
Description: | modified (diff) |
---|---|
Status: | new → assigned |
Trac Release: | 0.10 → 0.11 |
comment:2 Changed 17 years ago by
Cc: | Ben Longden Rys Ben Selby pmitchell added; anonymous removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed and committed to 0.11 branch
Note: See
TracTickets for help on using
tickets.
Confirmed.
Python Traceback Most recent call last:
- try:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- resp = req._response or []
-
- except HTTPException, e:
Local variables: Name Value after [' except RequestDone:', ' pass', ' resp = ... before [' try:', ' if not env and env_error:', ' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x88c070c> e TypeError('coercing to Unicode: need string or buffer, int found',) env <trac.env.Environment object at 0x86b604c> env_error None exc_info (<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need ... filename '/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py' frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 397 message u'TypeError: coercing to Unicode: need string or buffer, int found' req <Request "POST u'/peerReviewNew'"> resp [] tb <traceback object at 0x8a2fc5c> tb_hide None traceback 'Traceback (most recent call last):\n File ...- req.args.get('FORM_TOKEN') != req.form_token:
- raise HTTPBadRequest('Missing or invalid form token. '
- 'Do you have cookies enabled?')
-
- # Process the request and render the template
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
Local variables: Name Value chosen_handler <codereview.peerReviewNew.UserbaseModule object at 0x88c09ac> chrome <trac.web.chrome.Chrome object at 0x8813cec> ctype 'application/x-www-form-urlencoded' err (<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need ... handler <codereview.peerReviewNew.UserbaseModule object at 0x88c09ac> options {} req <Request "POST u'/peerReviewNew'"> self <trac.web.main.RequestDispatcher object at 0x88c070c>