Bug #13452
RGW Swift API: ranged request on a DLO provides wrong values in Content-Range HTTP header
0%
Description
radosgw:
$ curl -i "$publicURL/test/big.img" -H "X-Auth-Token: $token" -H "Range: bytes=0-2"
HTTP/1.1 206 Partial Content
Content-Range: bytes 2-2/3
Content-Length: 3
Accept-Ranges: bytes
Last-Modified: Thu, 08 Oct 2015 16:04:14 GMT
X-Timestamp: 1444320254.00000
etag: d41d8cd98f00b204e9800998ecf8427e
X-Object-Meta-mtime: 1444314159.770113
X-Object-Manifest: test_segments/big.img/1444314159.770113/19/2/
X-Trans-Id: tx00000000000000000000c-00561b9e00-3724-default
Content-Type: binary/octet-stream
Date: Mon, 12 Oct 2015 11:48:16 GMTto
Swift:
$ curl -i "$publicURL/test/big.img" -H "X-Auth-Token: $token" -H "Range: bytes=0-2"
HTTP/1.1 206 Partial Content
Content-Length: 3
Etag: "7a87bdaaf98d65689364ee7de8358ec3"
X-Object-Meta-Mtime: 1444314159.770113
Accept-Ranges: bytes
Last-Modified: Mon, 12 Oct 2015 11:45:19 GMT
Content-Range: bytes 0-2/19
X-Object-Manifest: test_segments/big.img/1444314159.770113/19/2/
X-Timestamp: 1444650318.30202
Content-Type: application/octet-stream
X-Trans-Id: tx3f197fa9f34a4585a8456-00561b9d73
Date: Mon, 12 Oct 2015 11:45:55 GMTto
Tested using the same content for the DLOs.
Related issues
Associated revisions
rgw: fix wrong first byte pos in Content-Range HTTP header of Swift's DLO.
Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: fix wrong length in Content-Range HTTP header of Swift's DLO.
Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
rgw: fix wrong first byte pos in Content-Range HTTP header of Swift's DLO.
Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 66f47f35bbb4966cb289811672938b90ae6d44ae)
rgw: fix wrong length in Content-Range HTTP header of Swift's DLO.
Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit b48f3d774129e0b37531fccda513626bd8ef07e5)
History
#1 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from New to In Progress
- Assignee set to Radoslaw Zarzynski
#2 Updated by Radoslaw Zarzynski over 8 years ago
- Status changed from In Progress to Fix Under Review
Pull request: https://github.com/ceph/ceph/pull/6232. (closed)
#3 Updated by Radoslaw Zarzynski over 7 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to hammer
#4 Updated by Nathan Cutler over 7 years ago
- Copied to Backport #16594: hammer: RGW Swift API: ranged request on a DLO provides wrong values in Content-Range HTTP header added
#5 Updated by Nathan Cutler over 7 years ago
so, you want to backport commits 66f47f35 and b48f3d77 from https://github.com/ceph/ceph/pull/6643 ?
#6 Updated by Nathan Cutler over 7 years ago
- Status changed from Pending Backport to Resolved