|
|
|
@ -111,7 +111,7 @@ func (api objectAPIHandlers) GetObjectHandler(w http.ResponseWriter, r *http.Req |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -223,7 +223,7 @@ func (api objectAPIHandlers) HeadObjectHandler(w http.ResponseWriter, r *http.Re |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -280,7 +280,7 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -518,7 +518,7 @@ func (api objectAPIHandlers) NewMultipartUploadHandler(w http.ResponseWriter, r |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -667,7 +667,7 @@ func (api objectAPIHandlers) AbortMultipartUploadHandler(w http.ResponseWriter, |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -707,7 +707,7 @@ func (api objectAPIHandlers) ListObjectPartsHandler(w http.ResponseWriter, r *ht |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -765,7 +765,7 @@ func (api objectAPIHandlers) CompleteMultipartUploadHandler(w http.ResponseWrite |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypePresigned, authTypeSigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
@ -874,7 +874,7 @@ func (api objectAPIHandlers) DeleteObjectHandler(w http.ResponseWriter, r *http. |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
case authTypeSigned, authTypePresigned: |
|
|
|
|
if s3Error := isReqAuthenticated(r); s3Error != ErrNone { |
|
|
|
|
if s3Error := isReqAuthenticated(r, serverConfig.GetRegion()); s3Error != ErrNone { |
|
|
|
|
errorIf(errSignatureMismatch, dumpRequest(r)) |
|
|
|
|
writeErrorResponse(w, r, s3Error, r.URL.Path) |
|
|
|
|
return |
|
|
|
|