Hi Stijn,

which current nightly snapshot are you referring to? In the current
code your line 186 actually is line 188 and there are to additional
(at 178) lines which already contain a fix for your problem. These
are:
                    if(contentLength < 0)
                        contentLength = 0;

Regards,
Ingo

> Hi,
> 
>       based on our tests (slide 1.0.16 and current nightly snapshot) we found =
> that when using the OracleContentStore the property 'getcontentlength' =
> mismatched with the actual length of the BLOB stored in Oracle (actual =
> BLOB size is 'getcontentlength' +1).
> 
> The following statements in OracleContentStore causes this behaviour:
> 
> 135: int contentLength =3D -1;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ....
> 186: revisionDescriptor.setContentLength(contentLength);
> 
> OracleContentStore updates the contentLength to the (original size-1) =
> and this value is made persistent in the PROPERTY table.
> 
> This causes Slide to malfunction when downloading files because the =
> property 'getcontentlength' is used by GetMethod to set the =
> contentlength of the response. The write of the last byte throws an =
> exception and the last buffer is never flushed to the client.
> 
> The solution is to initialize the contentLength to 0 instead of -1. =
> After this fix everything works just fine.
> 
> Keep up the good work,
> 
> Kind regards,
> 
> Stijn


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to