Merge pull request #1997 from versity/sis/copyobject-threshold

fix: enforce 5gb copy source object size threshold.
This commit is contained in:
Ben McClelland
2026-03-31 12:27:11 -07:00
committed by GitHub
17 changed files with 124 additions and 15 deletions
+8
View File
@@ -1100,3 +1100,11 @@ func GetNegativeMaxLimiterErr(limiter string) APIError {
HTTPStatusCode: http.StatusBadRequest,
}
}
func GetCopySourceObjectTooLargeErr(limit int64) APIError {
return APIError{
Code: "InvalidRequest",
Description: fmt.Sprintf("The specified copy source is larger than the maximum allowable size for a copy source: %d", limit),
HTTPStatusCode: http.StatusBadRequest,
}
}