mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-04 20:37:43 +00:00
fix: fetch_owner set to true when calling list_objects_v2 in the list_objects function (#1730)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -3721,7 +3721,13 @@ impl S3 for FS {
|
||||
// S3 API requires the marker field to be echoed back in the response
|
||||
let request_marker = req.input.marker.clone();
|
||||
|
||||
let v2_resp = self.list_objects_v2(req.map_input(Into::into)).await?;
|
||||
let v2_resp = self
|
||||
.list_objects_v2(req.map_input(|v1| {
|
||||
let mut v2: ListObjectsV2Input = v1.into();
|
||||
v2.fetch_owner = Some(true);
|
||||
v2
|
||||
}))
|
||||
.await?;
|
||||
|
||||
Ok(v2_resp.map_output(|v2| {
|
||||
// For ListObjects (v1) API, NextMarker should be the last item returned when truncated
|
||||
|
||||
Reference in New Issue
Block a user