scireum / s3ninja

S3 ninja emulates the Amazon S3 API for developement and test purposes
MIT License
493 stars 91 forks source link

ListObjectsV2Response.keyCount is always null #214

Closed agavrilov76 closed 1 year ago

agavrilov76 commented 1 year ago

The code snippet below returns an instance of ListObjectsV2Response with null keyCount regardless of the contents.

    final ListObjectsV2Response objectsToCopy =
        amazonS3Client.listObjectsV2(
            ListObjectsV2Request.builder().bucket(masterBucket).prefix(key).build());
jakobvogel commented 1 year ago

https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html

jakobvogel commented 1 year ago

Many thanks for reporting this! 👍