LHHDZ
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/s3api/s3api_object_multipart_handlers.go
|
@ -284,7 +284,7 @@ func (s3a *S3ApiServer) generateUploadID(object string) string { |
|
|
// Check object name and uploadID when processing multipart uploading
|
|
|
// Check object name and uploadID when processing multipart uploading
|
|
|
func (s3a *S3ApiServer) checkUploadId(object string, id string) error { |
|
|
func (s3a *S3ApiServer) checkUploadId(object string, id string) error { |
|
|
|
|
|
|
|
|
hash := s3a.generateUploadID(strings.Split(object, "_")[0]) |
|
|
|
|
|
|
|
|
hash := s3a.generateUploadID(object) |
|
|
|
|
|
|
|
|
if !strings.HasPrefix(id, hash) { |
|
|
if !strings.HasPrefix(id, hash) { |
|
|
glog.Errorf("object %s and uploadID %s are not matched", object, id) |
|
|
glog.Errorf("object %s and uploadID %s are not matched", object, id) |
|
|