DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12042>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12042

NodeRevisionContent stream not reuseable

           Summary: NodeRevisionContent stream not reuseable
           Product: Slide
           Version: Nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In July I reported a bug in NodeRevisionContent to dev-mailinglist: 
http://www.mail-archive.com/[email protected]/msg04301.html

The stream returned by NodesRevisionContent.streamContent() should be used 
only once, if the was set in NodeRevisionContent.setContent(InputStream 
inputStream) 

 However it will be used more often:

1) in most implementations of ContentInterceptor.preStoreContent 
2) when storeing the content
3) in most implementations of ContentInterceptor.postStoreContent 

Only the first read will be successfull. 
The second read will result in a exception like this:
==============
java.io.IOException: Stream closed
....


The original mail contains a patch.

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

Reply via email to