services/s3: `List` with `types.ListModePart` mode test fails when using MinIO
JinnyYi opened this issue · comments
JinnyYi commented
services/s3
should compatible with MinIO
and pass integration test with MinIO
: List
with types.ListModePart
mode should lists in-progress multipart uploads.
CreateMultipart
with key420d60bd-c35a-4106-a347-4eaeaef5276e/6ed57725-4f94-4cf2-b2eb-81a857a1a3e3
: get theMultipartID
:dbacfbb1-5c55-43a9-aeac-ba0c39521c9e
WriteMultipart
with theMultipartID
get from step 1 to write a partList
withtypes.ListModePart
mode to get the iteratorit
.
Excepted Behavior
We can retrieve all the in-progress multipart uploads by calling Next()
continuously until get the IterateDone
.
mo, err := it.Next()
mid, ok := mo.GetMultipartID()
// mid should equal to the `MultipartID` returned by `CreateMultipart`
Current Behavior
When calling it.Next()
:
runtime error: invalid memory address or nil pointer dereference
The ListMultipartUploads
request and response are as follows, no in-progress mulitpart upload info in the response body:
Steps to Reproduce
Run integration test for services/s3 with the following config:
STORAGE_S3_INTEGRATION_TEST=on
STORAGE_S3_CREDENTIAL=hmac:admin:password
STORAGE_S3_NAME=<bucketname>
STORAGE_S3_LOCATION=local
Also we need to set endpoint
and UsePathStyle
for initialization:
pairs.WithEndpoint("http:<MinIO server IP>:9000")
s3.WithForcePathStyle()
Environment
- MinIO: minio version RELEASE.2021-10-13T00-23-17Z
- services/s3: v2.5.0
JinnyYi commented
Possible answer: minio/minio#11686