Re: mod_python.util.StorageField.read_to_boundary has problems in
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: mod_python.util.StorageField.read_to_boundary has problems in




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: mod_python.util.StorageField.read_to_boundary has problems in  
Jim Gallacher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-05 01:47 AM

I've been spending some quality time with hexedit, vim and a little bit
of python. I can now generate a file which can be used in the unit test.

The problem seems to occur when a '\r' character is right at
readBlockSize boundary, which is 65368 in the current mod_python.util.

I have not yet tested Alexis's fix yet. It's possible that it doesn't
fix the problem but is just masking it since his code uses a
readBlockSize of 65536, which will not be a problem for ugh.pdf.

The attached script will generate a file that can be used for testing. I
haven't tried to integrate it into Nicolas's unit test as I wanted to
share my findings with everyone asap. I'll spend some more time on this
tommorrow.

Happy Bug Hunting,
Jim

Nicolas Lehuen wrote:
> Hi guys,
>
> In the pure "if it ain't tested, it ain't fixed" fashion, I've added a
> unit test for file upload to the test suite. It uploads a randomly
> generated 1 MB file to the server, and check that the MD5 digest
> returned by the server is correct. I could not reproduce Alexis' bug
> report this way, however. But I then I added a test with the UNIX-HATERS
> handbook file ugh.pdf, and bang, here comes the bug.
>
> I've checked in both unit tests into subversion, so that you can play
> with them. I'm now going to test Alexis' fix.
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register