Modify

Opened 9 years ago

Closed 9 years ago

#12548 closed defect (fixed)

IOError: request data read error

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: ServerSideRedirectPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

2015-10-21 10:39:17,636 Trac[main] ERROR: Internal Server Error: <RequestWithSession "POST '/wiki_render'">, referrer 'https://trac-hacks.org/wiki/RequirementsManagement?action=edit'
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 554, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 212, in dispatch
    self._pre_process_request(req, chosen_handler)
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 375, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracServerSideRedirectPlugin-0.4-py2.6.egg/tracserversideredirect/plugin.py", line 211, in pre_process_request
    args = req.args
  File "build/bdist.linux-i686/egg/trac/web/api.py", line 355, in __getattr__
    value = self.callbacks[name](self)
  File "build/bdist.linux-i686/egg/trac/web/api.py", line 338, in <lambda>
    'args': lambda req: arg_list_to_args(req.arg_list),
  File "build/bdist.linux-i686/egg/trac/web/api.py", line 355, in __getattr__
    value = self.callbacks[name](self)
  File "build/bdist.linux-i686/egg/trac/web/api.py", line 725, in _parse_arg_list
    fs = _FieldStorage(fp, environ=self.environ, keep_blank_values=True)
  File "/usr/lib/python2.6/cgi.py", line 506, in __init__
    self.read_urlencoded()
  File "/usr/lib/python2.6/cgi.py", line 607, in read_urlencoded
    qs = self.fp.read(self.length)
IOError: request data read error

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by Ryan J Ollos

Owner: changed from Martin Scharrer to Ryan J Ollos
Status: newaccepted

comment:2 Changed 9 years ago by Ryan J Ollos

I haven't been able to reproduce, but during auto-preview the handler for a request to /wiki_render is trac.wiki.web_api.WikiRenderer. Therefore it appears it would be sufficient to move the following code to the top of the method: serversideredirectplugin/0.11/tracserversideredirect/plugin.py@14963:201-202#L195

comment:3 Changed 9 years ago by Ryan J Ollos

In 14964:

0.5dev: Avoid error during auto-preview.

Refs #12548.

comment:4 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

I'll reopen if the issue is seen again.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.