> -----Original Message-----
> From: [email protected] On Behalf Of Clemens Feige
> Sent: 21 January 2011 09:48
> Subject: Re: [Trac] Attachment upload error - "stringobject: 
> bad argument to internal function"
> 
> Clemens Feige wrote:
> > Hi.
> >
> > With my Trac 0.10.6 I am getting a reproduce-able error 
> > while uploading specific files as attachments to a ticket [...].
> 
> It's me again.
> 
> Is there ANYBODY who has Trac 0.10.6 or higher who is able to 
> attach to a ticket a binary file containing 240000 zero bytes?
> I get an error here.
> 
> (Note that your Trac needs to allow such big attachment files.)
> 
> Here is the file:
> http://www.osypkamed.com/files/null_240000.test
> 
> This is how I made the test file:
> dd if=/dev/zero of=zero_240000.test bs=1 count=240000
> 
> 
> I would appreciate if someone could test to upload such file to Trac.
> Thanks
> Clemens
> 
OK, I downloaded your file, created a new wiki page in my sand pit
0.12.1 environemnt and successfully uploaded from my PC to the local
Trac server and downloaded back again.  Just to make sure I did a "fc
/b" to test that the two files were the same:-

{{{
D:\DOWNLOAD\TEMP>dir
21/01/2011  10:11           240,000 null_240000.2.test
21/01/2011  09:58           240,000 null_240000.test

D:\DOWNLOAD\TEMP>fc /b null_240000.2.test null_240000.test
Comparing files null_240000.2.test and NULL_240000.TEST
FC: no differences encountered
}}}

For reference my trac.ini contains:
{{{
[attachment]
max_size = 262144
render_unsafe_content = false
}}}

The server is Apache/2.2.17 (Win32) DAV/2 mod_ssl/2.2.17 OpenSSL/0.9.8o
mod_wsgi/3.3 Python/2.6.4 SVN/1.6.15 and is configured to serve
everything using https.

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to