On 12/02/2010 11:43 PM, cjdelisle (SVN) wrote:
Author: cjdelisle
Date: 2010-12-02 23:43:19 +0100 (Thu, 02 Dec 2010)
New Revision: 33253
Added:
contrib/sandbox/xwiki-store/xwiki-store-filesystem-attachments/src/main/java/org/xwiki/store/generic/
Why don't you use org.apache.commons.io.input.AutoCloseInputStream instead?
contrib/sandbox/xwiki-store/xwiki-store-filesystem-attachments/src/main/java/org/xwiki/store/generic/CloseAtEndInputStream.java
Modified:
contrib/sandbox/xwiki-store/xwiki-store-filesystem-attachments/src/main/java/com/xpn/xwiki/doc/FilesystemAttachmentContent.java
contrib/sandbox/xwiki-store/xwiki-store-filesystem-attachments/src/main/java/com/xpn/xwiki/store/FilesystemAttachmentStore.java
contrib/sandbox/xwiki-store/xwiki-store-filesystem-attachments/src/main/java/org/xwiki/store/filesystem/internal/DefaultFilesystemStoreTools.java
Log:
[filesystem-attachment-store] Fixed a nasty lock contension bug caused by other code not
closing the stream.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/