What was broken Paging with upload-id-marker did not work
ListMultipartUploads returns the multipart uploads in progress. The posix and azure backends dropped every upload of the key-marker before listing, so asking for the next page with the markers from the previous response failed with Invalid uploadId marker. An upload-id-marker without a key-marker was ignored for the listing but still echoed back in UploadIdMarker.
How we fixed it Markers behave as in S3
When an upload-id-marker is set, posix and azure keep the uploads of the key-marker and the listing continues right after the given upload. A lone upload-id-marker is cleared in the controller, so every backend gets the same input and the response has an empty UploadIdMarker.
#2477 #2472
What was broken The upload list misreported its own end
With an upload-id-marker the lister passed an index from a sub-slice to hasMoreAfter, so a page ending on the last upload was still marked IsTruncated and the client sent one more request for an empty page. NextKeyMarker and NextUploadIdMarker were only set on a truncated listing, while S3 fills them with the last upload on a single page too.
How we fixed it IsTruncated computed on the full list
The loop now walks the full list from startIndex, so IsTruncated comes from the absolute index. A non-truncated page reports its last upload in both next markers, and a page of only common prefixes keeps them empty as before.
#2475 #2476
What was broken uploads and uploadId together reached the listing
A bucket GET carrying both uploads and uploadId was handled as a normal ListMultipartUploads, although S3 rejects that combination.
How we fixed it A 400 for conflicting parameters
An error route now sits ahead of the normal routes for every HTTP method, at bucket and object level. It returns 400 InvalidArgument with the message Conflicting query string parameters: uploadId, uploads, as S3 does.
#2470
What was broken ListObjects V1 differed from S3
Version 1 of the object listing returned NextMarker even without a delimiter, although S3 only does so with one. The start-after and continuation-token parameters, which belong to ListObjectsV2, were silently ignored.
How we fixed it NextMarker only with a delimiter, V2 args rejected
Without a delimiter the response has no NextMarker and the client uses the last key as the marker for the next page. start-after and continuation-token, even when empty, get 400 InvalidArgument with the same message as S3.
#2506 #2505
What was broken Regions in requests were checked wrongly
A gateway running outside us-east-1 accepted CreateBucket without a LocationConstraint and answered a foreign region with InvalidLocationConstraint instead of the error AWS returns. ListBuckets ignored the bucket-region parameter and let even the value abc through.
How we fixed it Region errors that match AWS
A new ValidateLocationConstraint returns IllegalLocationConstraintException for a missing or foreign region, while us-east-1 still takes no constraint. bucket-region is checked against the AWS region code format: the gateway region passes in any letter case, and any other region gets the regional endpoint error.
#2474 #2389
What was broken Wrong error codes for faulty requests
A path with a malformed escape, such as /bucket/%zz, ended in DecodeURL as a 500 InternalError. DeleteObjects with an empty Delete element returned 200 and an empty result, although the S3 schema requires at least one object.
How we fixed it 400 InvalidURI and MalformedXML
A malformed path escape now returns 400 InvalidURI, and the website handler passes that error through. An empty DeleteObjects gets MalformedXML before anything reaches the backend, which a test now guards.
#2473 #2471
What was broken Object attributes without read access to it
GetObjectAttributes only checked s3:GetObjectAttributes, or s3:GetObjectVersionAttributes with a versionId. AWS also requires s3:GetObject or s3:GetObjectVersion for it, so a policy granting only the attributes action let through requests that S3 rejects. An anonymous request was served when the bucket policy granted that action publicly, although AWS never serves it.
How we fixed it A pair of actions and a refusal for anonymous calls
A new ObjectAttributesActions function returns the pair of actions depending on versionId, and the controller requires both. An anonymous GetObjectAttributes is refused up front with 403 AccessDenied and the message Request has no authentication!, as AWS does. Integration tests cover the denials with a single action, actions split between the bucket and identity policies, and a public bucket.
#2672