Browse Source

fix parent path

Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/4090/head
changlin.shi 2 years ago
parent
commit
900feb62b6
  1. 4
      weed/s3api/s3api_acp.go
  2. 2
      weed/s3api/s3api_object_handlers.go

4
weed/s3api/s3api_acp.go

@ -102,6 +102,6 @@ func getObjectEntry(s3a *S3ApiServer, bucket, object string) (*filer_pb.Entry, e
return s3a.getEntry(util.Join(s3a.option.BucketsPath, bucket), object)
}
func updateObjectEntry(s3a *S3ApiServer, bucket string, entry *filer_pb.Entry) error {
return s3a.updateEntry(util.Join(s3a.option.BucketsPath, bucket), entry)
func updateObjectEntry(s3a *S3ApiServer, bucket, object string, entry *filer_pb.Entry) error {
return s3a.updateEntry(util.Join(s3a.option.BucketsPath, bucket, object), entry)
}

2
weed/s3api/s3api_object_handlers.go

@ -550,7 +550,7 @@ func (s3a *S3ApiServer) PutObjectAclHandler(w http.ResponseWriter, r *http.Reque
return
}
err := updateObjectEntry(s3a, bucket, objectEntry)
err := updateObjectEntry(s3a, bucket, object, objectEntry)
if err != nil {
s3err.WriteErrorResponse(w, r, s3err.ErrInternalError)
return

Loading…
Cancel
Save