CLDSRV-909: Reject CopyObject when source exceeds 5 GiB#6177
Conversation
Hello tcarmet,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
|
LGTM |
❌ 1 Tests Failed:
View the full list of 1 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
0094687 to
be2daf0
Compare
|
LGTM |
Review by Claude Code |
Review by Claude Code |
35eb632 to
213648e
Compare
|
213648e to
f34ae66
Compare
|
LGTM |
| 'The specified copy source is larger than the maximum ' + | ||
| `allowable size for a copy source: ${constants.maximumAllowedUploadSize}`); | ||
| // eslint-disable-next-line no-param-reassign | ||
| request.sourceServerAccessLog && (request.sourceServerAccessLog.error = err); |
There was a problem hiding this comment.
This is a strange construct, I would rather do a plain if statement
There was a problem hiding this comment.
it is, but what I'm doing here is following the same pattern found across the file/project. I could go for a if and leave a bit of inconsistency or change it as whole. What I went with now is just consistency.
There was a problem hiding this comment.
ok, generally speaking I tend to prefer having an inconsistent but incrementally correct style than a consistently subpar style, but that's my take, do as you think is best!
There was a problem hiding this comment.
I'm fine with that, I think I needed an extra opinion to make a call so thanks, will have a look into it.
f34ae66 to
636984c
Compare
|
LGTM |
Align cloudserver's CopyObject with the AWS S3 contract by rejecting requests whose source object exceeds 5 GiB. AWS S3 returns HTTP 400
InvalidRequest("The specified copy source is larger than the maximum allowable size for a copy source: 5368709120") and expects clients to use the multipart copy flow instead; cloudserver currently accepts these requests, leaving a gap with the published contract.Targeting
development/9.4because changing a previously-accepted response is a behavior break for clients that relied on cloudserver's permissive behavior, happy to retargetdevelopment/9.3if we prefer wider rollout.Last commit contains a prettier fmt command and is kept separate from the actual code change for review. We should not focus on it as most of it is existing change.