mirror of
https://github.com/versity/versitygw.git
synced 2026-08-16 12:16:14 +00:00
Multipart partNumber validation was inconsistent because some handlers still enforced the hardcoded S3 default while others used the instance-level mpMaxParts setting. This created a split API contract where changing mpMaxParts did not reliably affect all relevant endpoints. This change routes all partNumber upper-bound checks through a shared effective limit helper so deployments that customize mpMaxParts get consistent behavior across GetObject, HeadObject, UploadPart, and UploadPartCopy, while preserving the default S3-compatible maximum when mpMaxParts is unset.