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 = -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