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.
Created attachment 12367 [details] Patch for StoreContentZip
Created attachment 12368 [details] Patch for CommonRDBMSAdapter
Created attachment 12369 [details] Patch for OracleRDBMSAdapter
Fixed for Oracle and DB2 store.
Fixed for StandardRDBMSAdapter in HEAD.