Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7922 closed defect (invalid)

Trac bug ( Attach a file to ticket)

Reported by: sudhirrana1984@… Owned by:
Priority: highest Milestone:
Component: general Version: 0.10
Severity: critical Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

Hi All,

Trac is up and working fine… But when we try to attach a file to ticket it shows me "Internal server error" with following logs.

[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 351, in dispatch_request\n    req = Request(environ, start_response), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 166, in __init__\n    self.args = self._parse_args(), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 182, in _parse_args\n    fs = cgi.FieldStorage(fp, environ=self.environ, keep_blank_values=True), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 534, in __init__\n    self.read_multi(environ, keep_blank_values, strict_parsing), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 654, in read_multi\n    environ, keep_blank_values, strict_parsing), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 536, in __init__\n    self.read_single(), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 669, in read_single\n    self.read_lines(), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 691, in read_lines\n    self.read_lines_to_outerboundary(), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33]   File "/usr/lib/python2.5/cgi.py", line 719, in read_lines_to_outerboundary\n    line = self.fp.readline(1<<16), referer: https://192.168.1.184/attachment/ticket/1?action=new
[Wed Dec 31 11:39:40 2008] [error] [client 192.168.1.33] TypeError: readline() takes exactly 1 argument (2 given), referer: https://192.168.1.184/attachment/ticket/1?action=new

Please provide me the relevant solution.

Thanks, Sudhir

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 16 years ago

Description: modified (diff)
Milestone: 0.11.3
Resolution: invalid
Status: newclosed

The exception happens in the cgi module of Python, and seems to be due to an invalid call to readline(). I can see three possible causes:

  • Your Python installation is broken. Try re-installing Python.
  • Your specific Python version has a bug in the cgi module. Try updating to the latest 2.5 version of Python.
  • Trac 0.10 may not be compatible with Python 2.5. The 0.10 branch is not officially supported anymore AFAIK. Try upgrading to Trac 0.11.2.

I'm closing this as invalid. Feel free to reopen if you can reproduce this issue with Trac 0.11.2 or later and the latest version of Python 2.5.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.