From f2d27a432cbd49a3e45404e21596a7090883609b Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 21 Jul 2025 09:44:12 -0700 Subject: [PATCH] address tests --- weed/s3api/s3api_object_handlers_list.go | 4 ++++ 1 file changed, 4 insertions(+) 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 } } }