Skip to content

Provide StorageClass in ListObjectsV2 #764

@nikeee

Description

@nikeee

Is your feature request related to a problem? Please describe.
The ListObjectsV2 implementation currently does not return the StorageClass for each object.

Other implementations (minio, ceph, hetzner, AWS, localstack, garage) always incude it in their responses.

Describe the solution you'd like
Always include it. It seems that it's currently explicitly removed from the metadata if it is standard:

pub fn remove_standard_storage_class(metadata: &mut HashMap<String, String>) {
if metadata.get(AMZ_STORAGE_CLASS) == Some(&STANDARD.to_string()) {
metadata.remove(AMZ_STORAGE_CLASS);
}
}

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

Metadata

Metadata

Assignees

Labels

S-confirmingStatus: Awaiting confirmation for a resolved issues3s

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions