From 3d5df449dcc118f9fce2a07525f6cf2f353b1c83 Mon Sep 17 00:00:00 2001 From: Anton Kopti Date: Fri, 24 Jul 2026 14:00:37 -0400 Subject: [PATCH] decode BLOBSTORE_ENCODED_PLUS placeholder back to + in prefix query param --- blobstore/list.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blobstore/list.go b/blobstore/list.go index 1f9002b..0c09678 100644 --- a/blobstore/list.go +++ b/blobstore/list.go @@ -55,7 +55,7 @@ func CheckAndAdjustPrefix(s3Ctrl *S3Controller, bucket, prefix string) (string, // HandleListByPrefix handles the API endpoint for listing objects by prefix in an S3 bucket. func (bh *BlobHandler) HandleListByPrefix(c echo.Context) error { - prefix := c.QueryParam("prefix") + prefix := strings.ReplaceAll(c.QueryParam("prefix"), "BLOBSTORE_PLUS_SIGN", "+") bucket := c.QueryParam("bucket") s3Ctrl, err := bh.GetController(bucket) @@ -128,8 +128,7 @@ func (bh *BlobHandler) HandleListByPrefix(c echo.Context) error { // HandleListByPrefixWithDetail retrieves a detailed list of objects in the specified S3 bucket with the given prefix. func (bh *BlobHandler) HandleListByPrefixWithDetail(c echo.Context) error { - prefix := c.QueryParam("prefix") - + prefix := strings.ReplaceAll(c.QueryParam("prefix"), "BLOBSTORE_PLUS_SIGN", "+") bucket := c.QueryParam("bucket") s3Ctrl, err := bh.GetController(bucket) if err != nil {