Opened 18 years ago
Closed 18 years ago
#3984 closed defect (fixed)
Win2k, Apache 2.2, mod_python 3.2.7 Attachements do not upload
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | high | Milestone: | 0.10.1 |
Component: | web frontend/mod_python | Version: | 0.10 |
Severity: | major | Keywords: | attachements windows |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I've read Ticket #554 and this problem seems related.
I cannot upload attachments on a Windows server with 0.10.
- Windows 2000 Server sp4
- Apache 2.2
- mod_python-3.2.7.win32-py2.4
- Python 2.4
The file does not upload and an Internal Server Error is thrown to the browser.
Attachments (3)
Change History (12)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
[Thu Oct 19 15:08:44 2006] [error] [client 161.44.114.254] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):, referer: http://ccbu-doc-xml2/xmlbugs/attachment/wiki/SandBox?action=new ... [Thu Oct 19 15:08:44 2006] [error] [client 161.44.114.254] PythonHandler trac.web.modpython_frontend: TypeError: readline() takes exactly 1 argument (2 given), referer: http://ccbu-doc-xml2/xmlbugs/attachment/wiki/SandBox?action=new
comment:3 by , 18 years ago
Let me know if you need more of the log. The spam filter here prevents me from adding more lines than that.
by , 18 years ago
Attachment: | traceback.txt added |
---|
traceback of server error on attachment upload with Python 2.4.4
by , 18 years ago
Attachment: | traceback.2.txt added |
---|
traceback of server error on attachment upload with Python 2.4.4
comment:6 by , 18 years ago
Severity: | normal → major |
---|
I get the same error, dunno if it's for the same problem. I found a solution.
Uploaded traceback as attachment.
What seems to be happening is that starting Python 2.4.4, (released October 18th, 5 days ago) cgi.py calls readline() with a size argument (which the built-in provides), but the one provided by trac (trac.web.modpython_frontend.InputWrapper) doesn't accept this new extra argument.
This is related to a bugfix in Python 2.4.4: http://sourceforge.net/tracker/index.php?func=detail&aid=1112549&group_id=5470&atid=105470 (found from a similar bugfix in Zope)
patch provided as an attachment.
Regards, John
by , 18 years ago
Attachment: | modpython_frontend.patch added |
---|
patch for broken attachment upload with Python 2.4.4
comment:7 by , 18 years ago
Milestone: | → 0.10.1 |
---|---|
Status: | new → assigned |
comment:9 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I can't post the error log. It keeps getting rejected as spam.