-
Notifications
You must be signed in to change notification settings - Fork 188
Labels
Description
Hello!
We recently updated past 4.0.0
so our S3Mock has list object version support.
Using PHP's aws-sdk-php
making a request to listObjectVersions
, which goes to S3Mock.
The params we are using are:
{
"Bucket": "company_name_here-development-bucket",
"Prefix": "685d23e7781af68c590f7512"
}
The results are
{
"RequestCharged": "",
"IsTruncated": false,
"Versions": [
{
"ETag": "\"4a6b392096768046b4be8e833a90a2cd-1\"",
"Size": "8719",
"Key": "685d23e7781af68c590f7512",
"VersionId": "null",
"IsLatest": false,
"LastModified": "2025-06-26T10:41:44+00:00",
"Owner": {
"DisplayName": "s3-mock-file-store",
"ID": "79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be"
}
}
],
"Name": "company_name_here-development-bucket",
"Prefix": "685d23e7781af68c590f7512",
"MaxKeys": 1000,
"@metadata": {
"statusCode": 200,
"effectiveUri": "https:\/\/10.211.55.2:9191\/company_name_here-development-bucket?versions&prefix=685d23e7781af68c590f7512",
"headers": {
"vary": "Origin",
"content-type": "application\/xml",
"transfer-encoding": "chunked",
"date": "Thu, 26 Jun 2025 10:54:15 GMT"
},
"transferStats": {
"http": [
[]
]
}
}
}
Where as you can see, in the version results, there's one item - it's the only item, but doesn't have the IsLatest
key.
Seems like an issue to me - unless I'm missing something, the one result should have the IsLatest
as it's the only version.