Clicking twice on direct edit throws an exception 
--------------------------------------------------

                 Key: NXP-407
                 URL: http://jira.nuxeo.org/browse/NXP-407
             Project: Nuxeo Enterprise Platform 5
          Issue Type: Bug
      Security Level: External (All people)
            Reporter: Bogdan Stefanescu
         Assigned To: Bogdan Stefanescu
            Priority: Major


This is due because Blobs initialized from input streams (StreamBlob derived 
classes) cannot open several time the underlying stream. Once a strem opened it 
will be consumed and a second attempt to open it will result in an exception.
To be able to due this the stream should be saved in a temporary file and thus 
each time getStream() is called a new FIleInputStream on that file is returned.

The proposed approach is top add a persist() method to Blob API that ensure the 
underlying stream can be opened several time. For blobs that naturally behave 
like this like FileStream or in memory streams (ByteArrayStream) this method 
will do nothing 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to