You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Cedric Moitrier (JIRA)" <ji...@apache.org> on 2012/11/13 11:50:23 UTC

[jira] [Created] (CMIS-604) WebService ObjectService.getContentStream(...) never close the stream once consummed

Cedric Moitrier created CMIS-604:
------------------------------------

             Summary: WebService ObjectService.getContentStream(...) never close the stream once consummed
                 Key: CMIS-604
                 URL: https://issues.apache.org/jira/browse/CMIS-604
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-commons, opencmis-server
    Affects Versions: OpenCMIS 0.8.0
            Reporter: Cedric Moitrier


This bug has been introduced when fixing CMIS-548.

org.apache.chemistry.opencmis.commons.impl.Converter#convert(ContentStream contentStream) now returns a CmisContentStreamType whose DataHandler prevents its InputStream from being closed.

The issue can be reproduced with the Fileshare Repository.
1/ call getContent on a document
2/ delete the same document
-> deletion will fail because an InputStream on that document has not been properly closed on the server side


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CMIS-604) WebService ObjectService.getContentStream(...) never close the stream once consummed

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CMIS-604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497048#comment-13497048 ] 

Florian Müller commented on CMIS-604:
-------------------------------------

Thanks for pointing that out. I have checked in a fix but I need to test it before I can close this issue.
                
> WebService ObjectService.getContentStream(...) never close the stream once consummed
> ------------------------------------------------------------------------------------
>
>                 Key: CMIS-604
>                 URL: https://issues.apache.org/jira/browse/CMIS-604
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-commons, opencmis-server
>    Affects Versions: OpenCMIS 0.8.0
>            Reporter: Cedric Moitrier
>            Assignee: Florian Müller
>
> This bug has been introduced when fixing CMIS-548.
> org.apache.chemistry.opencmis.commons.impl.Converter#convert(ContentStream contentStream) now returns a CmisContentStreamType whose DataHandler prevents its InputStream from being closed.
> The issue can be reproduced with the Fileshare Repository.
> 1/ call getContent on a document
> 2/ delete the same document
> -> deletion will fail because an InputStream on that document has not been properly closed on the server side

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CMIS-604) WebService ObjectService.getContentStream(...) never close the stream once consummed

Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CMIS-604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Müller reassigned CMIS-604:
-----------------------------------

    Assignee: Florian Müller
    
> WebService ObjectService.getContentStream(...) never close the stream once consummed
> ------------------------------------------------------------------------------------
>
>                 Key: CMIS-604
>                 URL: https://issues.apache.org/jira/browse/CMIS-604
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-commons, opencmis-server
>    Affects Versions: OpenCMIS 0.8.0
>            Reporter: Cedric Moitrier
>            Assignee: Florian Müller
>
> This bug has been introduced when fixing CMIS-548.
> org.apache.chemistry.opencmis.commons.impl.Converter#convert(ContentStream contentStream) now returns a CmisContentStreamType whose DataHandler prevents its InputStream from being closed.
> The issue can be reproduced with the Fileshare Repository.
> 1/ call getContent on a document
> 2/ delete the same document
> -> deletion will fail because an InputStream on that document has not been properly closed on the server side

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira