chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MIURA Toru (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CMIS-1019) AbstractBrowserServiceCall impls do not close create content streans.
Date Sun, 12 Mar 2017 13:31:04 GMT

     [ https://issues.apache.org/jira/browse/CMIS-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

MIURA Toru updated CMIS-1019:
-----------------------------
    Description: 
AbstractBrowserServiceCall  implementations such as CraeteDocument, 
SetContentStream  and AppendContentStream do not close content streams
created in serve() methods by using AbstractBrowserServiceCall#createContentStream().

If the implementation of SPI's ObjectService#createDocument, 
setContentStream or appendContentStream does not close the content stream, 
resources such as temporary files created by ThresholdOutputStream remain.

Whereas the inmemory and fileshare repositories close the content streams provided,
I believe the creator of streams should take responsibility to close it.

  was:
AbstractBrowserServiceCall  implementations such as CraeteDocument, 
SetContentStream  and AppendContentStream do not close content streams
created in serve() methods.

If the implementation of SPI's ObjectService#createDocument, 
setContentStream or appendContentStream does not close the content stream, 
resources such as temporary files created by ThresholdOutputStream remain.

Whereas the inmemory and fileshare repositories close the content streams provided,
I believe the creator of streams should take responsibility to close it.


> AbstractBrowserServiceCall impls do not close create content streans.
> ---------------------------------------------------------------------
>
>                 Key: CMIS-1019
>                 URL: https://issues.apache.org/jira/browse/CMIS-1019
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 1.0.0
>            Reporter: MIURA Toru
>
> AbstractBrowserServiceCall  implementations such as CraeteDocument, 
> SetContentStream  and AppendContentStream do not close content streams
> created in serve() methods by using AbstractBrowserServiceCall#createContentStream().
> If the implementation of SPI's ObjectService#createDocument, 
> setContentStream or appendContentStream does not close the content stream, 
> resources such as temporary files created by ThresholdOutputStream remain.
> Whereas the inmemory and fileshare repositories close the content streams provided,
> I believe the creator of streams should take responsibility to close it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message