cloudserver icon indicating copy to clipboard operation
cloudserver copied to clipboard

KeyCount missing

Open mayo opened this issue 6 years ago • 2 comments

Bug report information

The XML responses seem to be missing KeyCount element (https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html)

Description

When requesting bucket contents, the KeyCount element, which normally states number of items in the prefix (or response, if hitting MaxKeys) is missing.

Steps to reproduce the issue

Request bucket listing, observe the response.

Actual result

The response comes back without KeyCount element.

Expected result

KeyCount element should be present, as per https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html

Additional information

Running zenko/cloudserver:latest docker image with CloudServer 8.1.0-beta.

mayo avatar Mar 07 '19 18:03 mayo

A quick fix for this is here, if anyone wants to review. Tests will come later where I have more time.

https://github.com/scality/cloudserver/compare/development/8.1...mayo:development/8.1

mayo avatar Mar 14 '19 00:03 mayo

Hey @mayo, thanks for implementing a fix! It looks good to me, just adding some tests would be awesome 👍

dora-korpar avatar Mar 14 '19 01:03 dora-korpar