Ticket #3984 (closed defect: fixed)
Opened 5 years ago
Last modified 5 years ago
Win2k, Apache 2.2, mod_python 3.2.7 Attachements do not upload
| Reported by: | ccosenti@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | high | Milestone: | 0.10.1 |
| Component: | web frontend/mod_python | Version: | 0.10 |
| Severity: | major | Keywords: | attachements windows |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description (last modified by cboos) (diff)
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
Change History
comment:1 Changed 5 years ago by ccosenti@…
comment:2 Changed 5 years ago by anonymous
[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 Changed 5 years ago by ccosenti@…
Let me know if you need more of the log. The spam filter here prevents me from adding more lines than that.
comment:4 Changed 5 years ago by anonymous
Sorry, the original was Ticket #554.
comment:5 Changed 5 years ago by cboos
- Description modified (diff)
(fixed ticket ref in the description)
Changed 5 years ago by jean.de-largentaye.org
- Attachment traceback.txt added
traceback of server error on attachment upload with Python 2.4.4
Changed 5 years ago by jean.de-largentaye@…
- Attachment traceback.2.txt added
traceback of server error on attachment upload with Python 2.4.4
comment:6 Changed 5 years ago by jean.de-largentaye@…
- Severity changed from normal to 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
Changed 5 years ago by jean.de-largentaye@…
- Attachment modpython_frontend.patch added
patch for broken attachment upload with Python 2.4.4
comment:7 Changed 5 years ago by cmlenz
- Milestone set to 0.10.1
- Status changed from new to assigned
comment:8 Changed 5 years ago by eblot
The proposed patch works fine on a Linux box as well.
comment:9 Changed 5 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed



I can't post the error log. It keeps getting rejected as spam.