Problem in getting response from radosgw using swift api with Range header specified

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am facing a problem in requesting ceph radosgw using swift api. Connection is getting closed after reading 512 bytes from stream. This problem is only occurring if I send a GET object request with range header.

Here is the request and response:

Request--->

GET http://rgw.mydomain.com/swift/v1/user_1/test.webm HTTP/1.1
X-Auth-Token: ***************
Range: 0-

Response--->

HTTP/1.1 206 Partial Content
Date: Mon, 13 Jan 2014 05:58:34 GMT 
Server: Apache/2.2.22 (Ubuntu)
Content-Range: bytes 0-0/11760217
Accept-Ranges: bytes
Last-Modified: Wed, 08 Jan 2014 10:03:33 GMT
etag: 836fe9e58b2961c8ff34d7d8fe0fc530
Content-Length: 11760217
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: video/webm

Also I can see Content-Range header is incorrect. Is it a knows issue or am I missing something.

I'm using HttpClient 4.3.1 (Apache) for making requests and the error it throws is :

Exception in thread "main" org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 11760217; received: 524288
    at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180)
    at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
    at TestSwiftAPI.main(TestSwiftAPI.java:51)

--
Dal Chand Choudhary
Member of Technical Team
LT Research
Bangalore, India.
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux