mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 06:26:17 +03:00
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:
committed by
Harshavardhana
parent
584813e214
commit
b48b2e7f7c
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user