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

Fill more info on AtomPub rendition content streams

    XMLWordPrintableJSON

Details

    Description

      In AtomPub a content stream is retrieved as a binary from a HTTP GET call and the code in o.a.c.o.client.bindings.spi.atompub.ObjectServiceImpl.getContentStream does:
      result.setFileName(null);
      result.setLength(resp.getContentLength());
      because the filename is not known at that point. And note that for a chunked HTTP response the length is not known and is therefore null.

      However when it's a rendition, this is called by RenditionImpl.getContentStream() which could then use its knowledege of the <atom:link rel="alternate"> title and length (if available).

      Attachments

        Activity

          People

            fguillaume Florent Guillaume
            fguillaume Florent Guillaume
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: