Modify ↓
Opened 16 years ago
Closed 16 years ago
#7922 closed defect (invalid)
Trac bug ( Attach a file to ticket)
Reported by: | 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 )
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 , 16 years ago
Description: | modified (diff) |
---|---|
Milestone: | 0.11.3 |
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The exception happens in the
cgi
module of Python, and seems to be due to an invalid call toreadline()
. I can see three possible causes:cgi
module. Try updating to the latest 2.5 version of Python.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.