-
Notifications
You must be signed in to change notification settings - Fork 762
Closed
Labels
S-confirmingStatus: Awaiting confirmation for a resolved issueStatus: Awaiting confirmation for a resolved issues3s
Description
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:
rustfs/crates/ecstore/src/store_utils.rs
Lines 28 to 32 in b9fd66c
| 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 issueStatus: Awaiting confirmation for a resolved issues3s