[Trac-tickets] Re: [The Trac Project] #554: Attachments doesn't
work with mod_python and windows
The Trac Project
noreply at edgewall.com
Mon Oct 24 10:05:03 CDT 2005
#554: Attachments doesn't work with mod_python and windows
------------------------------------------+---------------------------------
Reporter: ian.leader at line.co.uk | Owner: cboos
Type: defect | Status: new
Priority: highest | Milestone: 0.9
Component: mod_python frontend | Version: 0.9b1
Severity: critical | Resolution:
Keywords: mod_python attachments win32 |
------------------------------------------+---------------------------------
Changes (by cboos):
* status: reopened => new
* owner: jonas => cboos
Comment:
I finally got Apache installed on my windows machine (using
[http://www.apachefriends.org/en/xampp-windows.html XAMPP for windows])
and I could reproduce the issue:
{{{
Traceback (most recent call last):
File "D:\Workspace\install\lib\python\trac\devel\Lib\site-
packages\trac\web\modpython_frontend.py", line 206, in handler
dispatch_request(mpr.path_info, mpr, env)
File "D:\Workspace\install\lib\python\trac\devel\Lib\site-
packages\trac\web\main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "D:\Workspace\install\lib\python\trac\devel\Lib\site-
packages\trac\web\main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "D:\Workspace\install\lib\python\trac\devel\Lib\site-
packages\trac\attachment.py", line 265, in process_request
self._do_save(req, attachment)
File "D:\Workspace\install\lib\python\trac\devel\Lib\site-
packages\trac\attachment.py", line 296, in _do_save
if not upload.filename:
}}}
The above was without the attachment:util_py.patch
Now, with the patch applied:
{{{
$ cd $PYTHONHOME/Lib/site-packages/mod_python
$ cp util.py util.py-orig
$ rm util.pyc
$ rm util.pyo
$ patch < util_py.patch
(Stripping trailing CRs from patch.)
patching file util.py
}}}
... the problem is gone.
I'll try to have a look if we can do something about that from within Trac
(i.e. without the patch). At least some kind of warning could be produced.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/554>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list