mirror of
https://github.com/nspcc-dev/neofs-s3-gw.git
synced 2026-03-01 04:29:15 +00:00
ListObjectsV2 doesn't check start-after value. #79
Labels
No labels
I2
I2
I3
I4
S2
S3
S4
S4
U0
U1
U2
U2
U3
U4
U4
auth-mate
blocked
bug
config
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
question
security
test
tree-service
tree-service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-s3-gw#79
Loading…
Add table
Add a link
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?
Originally created by @masterSplinter01 on GitHub (Jul 23, 2021).
Originally assigned to: @masterSplinter01 on GitHub.
While #154 I noticed that ListObjectsV2 doesn't check is a value of start-after an existing key in a bucket or not. It just choose objects which have a key > the string in the start-after.
Minio's behaviour is the same.
For example: a bucket keeps 2 objects:
aaa,zzzMinio's response to a request with non-existing key in start-after:
Expected:
???As it's written here https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_RequestParameters
the value should be an existing key.
Let's check how AWS behave. If it checks the value, we can add a check of start-after. Otherwise just close the issue.
@KirillovDenis commented on GitHub (Aug 2, 2021):
Neither the first nor the second version of the
listObjectschecks the key (bucket containsa-objandz-obj).