verify maxPartID in object options helpers (#17015)

This commit is contained in:
jiuker
2023-04-19 13:34:30 +08:00
committed by GitHub
parent 224d9a752f
commit 8a81e317d6
3 changed files with 8 additions and 0 deletions

View File

@@ -2097,6 +2097,8 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
apiErr = ErrObjectLockInvalidHeaders
case objectlock.ErrMalformedXML:
apiErr = ErrMalformedXML
case errInvalidMaxParts:
apiErr = ErrInvalidMaxParts
}
// Compression errors