Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-449

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • OpenCMIS 0.5.0
    • OpenCMIS 0.6.0
    • opencmis-client
    • None

    Description

      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)

      Attachments

        Activity

          People

            fmui Florian Müller
            alv131 Ioan LUPU
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: