10-01-2014 08:57 PM
I'm trying to issue a ranged request to retrieve a segment (byte range) of a document stored on Nuxeo but it seems Nuxeo's CMIS Atompub request handler doesn't honor the Range HTTP header.
Is it really not implemented or am I doing anything wrong?
Please note that, in the curl output below, even though the HTTP status is correct (206 Partial Content
) the following issues could be found in the response:
Content-Length
header seems to be missing;Content-Range
header seems to be missing;~ ??? curl -v -uAdministrator:Administrator -H Range:bytes=0-10 http://demo.nuxeo.com/nuxeo/atom/cmis/default/content/Logo%20Nuxeo.png\?id\=a89667cd-1c68-43b3-be05-e0fda1e1bff4 | wc --bytes * Hostname was NOT found in DNS cache % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 212.85.154.85... * Connected to demo.nuxeo.com (212.85.154.85) port 80 (#0) * Server auth using Basic with user 'Administrator' > GET /nuxeo/atom/cmis/default/content/Logo%20Nuxeo.png?id=a89667cd-1c68-43b3-be05-e0fda1e1bff4 HTTP/1.1 > Authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y > User-Agent: curl/7.35.0 > Host: demo.nuxeo.com > Accept: */* > Range:bytes=0-10 > < HTTP/1.1 206 Partial Content < Date: Wed, 01 Oct 2014 22:28:50 GMT * Server Apache-Chemistry-OpenCMIS/0.11.0 is not blacklisted < Server: Apache-Chemistry-OpenCMIS/0.11.0 < X-UA-Compatible: IE=Edge,chrome=1 < Cache-Control: private, max-age=0 < Last-Modified: Tue, 04 Mar 2014 17:05:41 GMT < ETag: "9311aa4854bbab16a655d8f388d3b855" < Content-Disposition: attachment; filename*=UTF-8''Logo%20Nuxeo.png < Content-Type: image/png < Via: 1.1 demo.nuxeo.com < Transfer-Encoding: chunked < 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown] 100 38753 0 38753 0 0 32258 0 --:--:-- 0:00:01 --:--:-- 32267 * Connection #0 to host demo.nuxeo.com left intact 38753
I fired the request against demo.nuxeo.com
. As of Oct-6-2014, the Nuxeo version at this address is 5.9.5.
10-06-2014 10:50 AM
10-06-2014 10:50 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.