aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weed/s3api/s3api_object_handlers_list.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/s3api/s3api_object_handlers_list.go b/weed/s3api/s3api_object_handlers_list.go
index a96a6fe10..f38039f24 100644
--- a/weed/s3api/s3api_object_handlers_list.go
+++ b/weed/s3api/s3api_object_handlers_list.go
@@ -205,6 +205,10 @@ func (s3a *S3ApiServer) listFilerEntries(bucket string, originalPrefix string, m
delimiterFound = true
lastEntryWasCommonPrefix = true
lastCommonPrefixName = delimitedPath[0]
+ } else {
+ // This object belongs to an existing CommonPrefix, skip it entirely
+ // to prevent it from affecting truncation logic
+ return
}
}
}