When using conditional GET with range header request, proxy returns 416
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When client requests conditional GET with range header,
proxy returns 416 response(Requested Range Not Satisfiable).
But it should returns 304 response.
#just get file
root@swift-saio:~# curl -v -H 'X-Auth-token: AUTH_tke80f06d6
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_test/f/f HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-token: AUTH_tke80f06d6
>
< HTTP/1.1 200 OK
< Content-Length: 3086
< Accept-Ranges: bytes
< Last-Modified: Tue, 02 Jul 2013 04:48:20 GMT
< Etag: 227f17fd198e921
< X-Timestamp: 1372740500.91789
< Content-Type: application/
< Date: Tue, 02 Jul 2013 04:52:47 GMT
<
.......
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
#conditional GET
root@swift-saio:~# curl -v -H 'X-Auth-token: AUTH_tke80f06d6
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_test/f/f HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-token: AUTH_tke80f06d6
> If-Modified-Since: Tue, 02 Jul 2013 05:48:20 GMT
>
< HTTP/1.1 304 Not Modified
< Accept-Ranges: bytes
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< Date: Tue, 02 Jul 2013 04:49:17 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
#conditional GET with range header
root@swift-saio:~# curl -v -H 'X-Auth-token: AUTH_tke80f06d6
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_test/f/f HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 127.0.0.1:8080
> Accept: */*
> X-Auth-token: AUTH_tke80f06d6
> If-Modified-Since: Tue, 02 Jul 2013 05:48:20 GMT
> Range: bytes=10-34
>
< HTTP/1.1 416 Requested Range Not Satisfiable
< Accept-Ranges: bytes
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< Date: Tue, 02 Jul 2013 04:49:29 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
summary: |
- When using conditional GET with range header request, proxy returns 416 + Bugs when using conditional GET |
summary: |
- Bugs when using conditional GET + When using conditional GET with range header request, proxy returns 416 |
Fix proposed to branch: master /review. openstack. org/35244
Review: https:/