Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions blobstore/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down
Loading