Browse Source

/table-buckets

pull/8167/head
Chris Lu 3 days ago
parent
commit
88c27615c4
  1. 2
      weed/s3api/s3tables/handler.go
  2. 2
      weed/s3api/s3tables/handler_policy.go

2
weed/s3api/s3tables/handler.go

@ -14,7 +14,7 @@ import (
)
const (
TablesPath = "/tables"
TablesPath = "/table-buckets"
DefaultAccountID = "000000000000"
DefaultRegion = "us-east-1"

2
weed/s3api/s3tables/handler_policy.go

@ -18,7 +18,7 @@ func (h *S3TablesHandler) extractResourceOwnerAndBucket(
resourcePath string,
rType ResourceType,
) (ownerAccountID, bucketName string, err error) {
// Extract bucket name from resource path (format: /tables/{bucket}/... for both tables and buckets)
// Extract bucket name from resource path (format: /table-buckets/{bucket}/... for both tables and buckets)
parts := strings.Split(strings.Trim(resourcePath, "/"), "/")
if len(parts) >= 2 {
bucketName = parts[1]

Loading…
Cancel
Save