Browse Source

Merge branch '5_objectWriteAcl' into 10_acl_merged

# Conflicts:
#	weed/s3api/s3api_acp.go
pull/4090/head
changlin.shi 2 years ago
parent
commit
a982d486fd
  1. 4
      weed/s3api/s3api_acp.go

4
weed/s3api/s3api_acp.go

@ -10,6 +10,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/s3api/s3err" "github.com/seaweedfs/seaweedfs/weed/s3api/s3err"
"github.com/seaweedfs/seaweedfs/weed/util" "github.com/seaweedfs/seaweedfs/weed/util"
"net/http" "net/http"
"path/filepath"
) )
func getAccountId(r *http.Request) string { func getAccountId(r *http.Request) string {
@ -256,7 +257,8 @@ func (s3a *S3ApiServer) checkAccessForWriteObjectAcl(accountId, bucket, object s
} }
func updateObjectEntry(s3a *S3ApiServer, bucket, object string, entry *filer_pb.Entry) error { func updateObjectEntry(s3a *S3ApiServer, bucket, object string, entry *filer_pb.Entry) error {
return s3a.updateEntry(util.Join(s3a.option.BucketsPath, bucket, object), entry)
dir, _ := filepath.Split(object)
return s3a.updateEntry(util.Join(s3a.option.BucketsPath, bucket, dir), entry)
} }
// Check Object-Write related access // Check Object-Write related access

Loading…
Cancel
Save