Bug 30317 - getContentLength property not being set correctly
Summary: getContentLength property not being set correctly
Status: NEW
Alias: None
Product: Slide
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.1
Hardware: All All
: P3 critical (vote)
Target Milestone: ---
Assignee: Slide Developer List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 06:08 UTC by Ritu Kedia
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
Patch for StoreContentZip (540 bytes, patch)
2004-08-09 10:13 UTC, Davide Savazzi
Details | Diff
Patch for CommonRDBMSAdapter (595 bytes, patch)
2004-08-09 10:13 UTC, Davide Savazzi
Details | Diff
Patch for OracleRDBMSAdapter (1.15 KB, patch)
2004-08-09 10:14 UTC, Davide Savazzi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ritu Kedia 2004-07-26 06:08:28 UTC
The content length is not computed and stored correctly when uploading content
using WebDAV Client API (WebdavResource). This problem occurs when using
InputStream as an argument to putMethod of WebdavResource. It does not occurs
when using File as an argument type. 
See this thread for discussion on this bug:
http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06773.html

This bug is critical since the content uploaded by this method goes through fine
without any errors. But the problem surfaces when someone makes a copy of this
resource. The copy is not created correctly and worse still no error is thrown
on copy method. The error is thrown when someone tries to version control the
copied resource.

Using byte array to upload resources is not an acceptable workaround due to
memory constraints.
Comment 1 Davide Savazzi 2004-08-09 10:13:14 UTC
Created attachment 12367 [details]
Patch for StoreContentZip
Comment 2 Davide Savazzi 2004-08-09 10:13:59 UTC
Created attachment 12368 [details]
Patch for CommonRDBMSAdapter
Comment 3 Davide Savazzi 2004-08-09 10:14:34 UTC
Created attachment 12369 [details]
Patch for OracleRDBMSAdapter
Comment 4 Davide Savazzi 2004-08-23 17:54:08 UTC
Fixed for Oracle and DB2 store. 
Comment 5 Davide Savazzi 2004-09-22 12:13:04 UTC
Fixed for StandardRDBMSAdapter in HEAD.