minor incompatibilities on Head/GetObject with partNumber #201
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#201
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We currently reject queries with
partNumber
when object was not uploaded during a multipart upload (at least when the object got inlined, untested if it was big enough to not be). AWS consider non multipart upload create a single part number 1, so it's possible to query such object withpartNumber=1
(other values returnInvalidPartNumber: The requested partnumber is not satisfiable
)On query with partNumber, we return
200 OK
, but AWS actually returns206 Partial Content
with aContent-Range
header.We accept query with
partNumber
and headerRange: bytes=
, AWS does not (InvalidRequest: Cannot specify both Range header and partNumber query parameter
). This is not a problem, but it's (almost) dead code, so we might want to get ride of this feature.To be clear, if I do a GetObject with
part_number=2
(and there is a non-empty part 1), should it return:or
?
for a file with 2 part of exactly 6Mio each, the exact header is
Content-Range: bytes 6291456-12582911/12582912
, so it's the latter (with added full content lenght which was not in your example)