Edgewall Software
Modify

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: ccosenti@… 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 Christian Boos)

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)

traceback.txt (1.9 KB ) - added by jean.de-largentaye.org 18 years ago.
traceback of server error on attachment upload with Python 2.4.4
traceback.2.txt (1.9 KB ) - added by jean.de-largentaye@… 18 years ago.
traceback of server error on attachment upload with Python 2.4.4
modpython_frontend.patch (644 bytes ) - added by jean.de-largentaye@… 18 years ago.
patch for broken attachment upload with Python 2.4.4

Download all attachments as: .zip

Change History (12)

comment:1 by ccosenti@…, 18 years ago

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

comment:2 by anonymous, 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 ccosenti@…, 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.

comment:4 by anonymous, 18 years ago

Sorry, the original was Ticket #554.

comment:5 by Christian Boos, 18 years ago

Description: modified (diff)

(fixed ticket ref in the description)

by jean.de-largentaye.org, 18 years ago

Attachment: traceback.txt added

traceback of server error on attachment upload with Python 2.4.4

by jean.de-largentaye@…, 18 years ago

Attachment: traceback.2.txt added

traceback of server error on attachment upload with Python 2.4.4

comment:6 by jean.de-largentaye@…, 18 years ago

Severity: normalmajor

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 jean.de-largentaye@…, 18 years ago

Attachment: modpython_frontend.patch added

patch for broken attachment upload with Python 2.4.4

comment:7 by Christopher Lenz, 18 years ago

Milestone: 0.10.1
Status: newassigned

comment:8 by Emmanuel Blot, 18 years ago

The proposed patch works fine on a Linux box as well.

comment:9 by Christopher Lenz, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [4036], ported to 0.10-stable in [4038].

Modify Ticket

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