|
@ -8,8 +8,8 @@ import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/aws/aws-sdk-go/service/s3" |
|
|
"github.com/aws/aws-sdk-go/service/s3" |
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants" |
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants" |
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3acl" |
|
|
|
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3account" |
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3account" |
|
|
|
|
|
"github.com/seaweedfs/seaweedfs/weed/s3api/s3acl" |
|
|
"github.com/seaweedfs/seaweedfs/weed/security" |
|
|
"github.com/seaweedfs/seaweedfs/weed/security" |
|
|
"github.com/seaweedfs/seaweedfs/weed/util/mem" |
|
|
"github.com/seaweedfs/seaweedfs/weed/util/mem" |
|
|
"golang.org/x/exp/slices" |
|
|
"golang.org/x/exp/slices" |
|
@ -588,7 +588,7 @@ func (s3a *S3ApiServer) PutObjectAclHandler(w http.ResponseWriter, r *http.Reque |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
err := updateObjectEntry(s3a, bucket, objectEntry) |
|
|
|
|
|
|
|
|
err := updateObjectEntry(s3a, bucket, object, objectEntry) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError) |
|
|
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError) |
|
|
return |
|
|
return |
|
|