aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-07-21 09:44:12 -0700
committerchrislu <chris.lu@gmail.com>2025-07-21 09:44:12 -0700
commitf2d27a432cbd49a3e45404e21596a7090883609b (patch)
tree4dc6e3e3234c127def64195c7cc26161ed7c09d9
parent07619950a19241f4bd51c4cf7dacfc84bfccf74e (diff)
downloadseaweedfs-f2d27a432cbd49a3e45404e21596a7090883609b.tar.xz
seaweedfs-f2d27a432cbd49a3e45404e21596a7090883609b.zip
address tests
-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
}
}
}