You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Ioan LUPU (Created) (JIRA)" <ji...@apache.org> on 2011/10/12 22:15:13 UTC

[jira] [Created] (CMIS-449) "rendition.getContentStream()" throws exception instead of returning null

"rendition.getContentStream()" throws exception instead of returning null
-------------------------------------------------------------------------

                 Key: CMIS-449
                 URL: https://issues.apache.org/jira/browse/CMIS-449
             Project: Chemistry
          Issue Type: Improvement
          Components: opencmis-client
    Affects Versions: OpenCMIS 0.5.0
            Reporter: Ioan LUPU
            Priority: Minor


Modified "GettingStarted":

- Added in the right place:

System.out.println("rendition.contentStream: " + rendition.getContentStream());

- Commented:

//              break; // Just show the first object with
//                     // renditions. Remove this
//                     // Break to show them all

- Console:

found  testNoContent of type Filethat has renditions...
kind: cmis:thumbnail	mimetype: image/gif	width: -1	height: -1	stream id: nx:icon
Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: No content stream
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getContentStream(ObjectServiceImpl.java:442)
	at org.apache.chemistry.opencmis.client.runtime.RenditionImpl.getContentStream(RenditionImpl.java:85)
	at xxx.test.GettingStarted.main(GettingStarted.java:859)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CMIS-449) "rendition.getContentStream()" throws exception instead of returning null

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

Florian Müller resolved CMIS-449.
---------------------------------

       Resolution: Fixed
    Fix Version/s: OpenCMIS 0.6.0
         Assignee: Florian Müller

A rendition without a content stream is rather odd and there is probably a server issue. But in order to align the behavior with Document.getContentStream() it now returns null.
                
> "rendition.getContentStream()" throws exception instead of returning null
> -------------------------------------------------------------------------
>
>                 Key: CMIS-449
>                 URL: https://issues.apache.org/jira/browse/CMIS-449
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.5.0
>            Reporter: Ioan LUPU
>            Assignee: Florian Müller
>            Priority: Minor
>             Fix For: OpenCMIS 0.6.0
>
>
> Modified "GettingStarted":
> - Added in the right place:
> System.out.println("rendition.contentStream: " + rendition.getContentStream());
> - Commented:
> //              break; // Just show the first object with
> //                     // renditions. Remove this
> //                     // Break to show them all
> - Console:
> found  testNoContent of type Filethat has renditions...
> kind: cmis:thumbnail	mimetype: image/gif	width: -1	height: -1	stream id: nx:icon
> Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: No content stream
> 	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getContentStream(ObjectServiceImpl.java:442)
> 	at org.apache.chemistry.opencmis.client.runtime.RenditionImpl.getContentStream(RenditionImpl.java:85)
> 	at xxx.test.GettingStarted.main(GettingStarted.java:859)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira