Part ID check (#1730)

* Added check in PutObjectPartHandler to make sure part ID does not exceed 10000. ErrInvalidMaxParts written to response if part ID exceeds the maximum value.
This commit is contained in:
Aakash Muttineni
2016-05-24 14:22:47 +05:30
committed by Harshavardhana
parent 584813e214
commit b48b2e7f7c
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -741,6 +741,12 @@ func (api objectAPIHandlers) PutObjectPartHandler(w http.ResponseWriter, r *http
return
}
// check partID with maximum part ID for multipart objects
if isMaxPartID(partID) {
writeErrorResponse(w, r, ErrInvalidMaxParts, r.URL.Path)
return
}
var partMD5 string
switch getRequestAuthType(r) {
default: