Description

MoinMoin returns a UnicodeError when we try to upload a binary file.

Steps to reproduce

  1. Upload a binary file from any page

Details

Here is the error log:

uploadbinaryerror.html

MoinMoin Version

1.5.1

OS and Version

Windows Server 2003 SP1

Python Version

2.4.2

Server Setup

Apache 2.0.55

Server Details

Using mod_python 3.1.4

Workaround

Discussion

The bug looks like the one solved in MoinMoinBugs/AttachmentsDontWork . I though about applying that patch to see if it would solve the problem but it seems like that patch was already part of MoinMoin 1.5.1. -- RemyRoy

Please specify your ModPy version.

Applying the patch from MoinMoinBugs/AttachmentsDontWork do not solve the problem. -- RemyRoy

It looks like RequestModPy._setup_args_from_cgi_form does not work correctly for you and does not setup the filefilename key. This decodeArgs thinks it is a user form (text) input and tries to decode it.

I found the problem. It's a bug with mod_python and windows. Every details about it and the patch can be found here: http://www.modpython.org/pipermail/mod_python/2004-March/015225.html . I applied the patch and everything works fine. -- RemyRoy

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/UploadBinaryUnicodeErrorWin32ModPython (last edited 2007-10-29 19:21:15 by localhost)