[Zope] content headers wrong after upload

Andreas Jung lists at zopyx.com
Tue Mar 18 17:23:54 EDT 2008



--On 18. März 2008 15:23:56 -0500 Michael Shulman <shulman at mathcamp.org> 
wrote:

> On Tue, Mar 18, 2008 at 2:52 PM, Andreas Jung <lists at zopyx.com> wrote:
>>  > I just noticed that when I submit a form to a zope script(python) that
>>  > includes a file upload, the content-type and content-length headers of
>>  > the response are incorrectly set to those of the uploaded file, rather
>>  > than those of what the script actually returns.  Any ideas why this
>>  > could be happening?  I'm running zope 2.9.6 on Debian etch.
>>
>>  How to reproduce?
>
> This is deep in a complicated setup and so far I have failed to
> reproduce it with small test scripts.  I know that isn't so helpful,
> sorry.  I'll keep trying to reproduce it, but I wonder if anyone has
> experienced anything at all similar or has any hints about where the
> problem *might* be, to point my efforts in a more likely direction?
>

If you can only repoduce yourself: take the debugger and analyze the 
related code in OFS.File and/or trible check all HTTP headers being send 
during the upload operation.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080318/618db97e/attachment.bin


More information about the Zope mailing list