Project

General

Profile

Bug #13452

RGW Swift API: ranged request on a DLO provides wrong values in Content-Range HTTP header

Added by Radoslaw Zarzynski over 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 GMT

to

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 GMT

to

Tested using the same content for the DLOs.


Related issues

Copied to rgw - Backport #16594: hammer: RGW Swift API: ranged request on a DLO provides wrong values in Content-Range HTTP header Resolved

Associated revisions

Revision 66f47f35 (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: fix wrong first byte pos in Content-Range HTTP header of Swift's DLO.

Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <>

Revision b48f3d77 (diff)
Added by Radoslaw Zarzynski over 8 years ago

rgw: fix wrong length in Content-Range HTTP header of Swift's DLO.

Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <>

Revision 2175b688 (diff)
Added by Radoslaw Zarzynski over 7 years ago

rgw: fix wrong first byte pos in Content-Range HTTP header of Swift's DLO.

Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <>
(cherry picked from commit 66f47f35bbb4966cb289811672938b90ae6d44ae)

Revision 009c844e (diff)
Added by Radoslaw Zarzynski over 7 years ago

rgw: fix wrong length in Content-Range HTTP header of Swift's DLO.

Fixes: #13452
Signed-off-by: Radoslaw Zarzynski <>
(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

#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

Also available in: Atom PDF