Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
OpenCMIS 0.5.0
-
None
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).