CLDSRV-874: return checksum in GetObjectAttributes#6123
Conversation
Hello leif-scality,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 |
Review by Claude Code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
... and 2 files with indirect coverage changes @@ Coverage Diff @@
## development/9.4 #6123 +/- ##
===================================================
+ Coverage 84.73% 84.79% +0.06%
===================================================
Files 207 207
Lines 13592 13597 +5
===================================================
+ Hits 11517 11530 +13
+ Misses 2075 2067 -8
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
d1176e1 to
533ba93
Compare
|
LGTM |
533ba93 to
63c5751
Compare
|
LGTM |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
|
|
||
| const algorithms = Object.freeze({ | ||
| crc64nvme: { | ||
| getObjectAttributesXMLTag: 'ChecksumCRC64NVME', |
There was a problem hiding this comment.
Could we export these strings as constants, if used in other projects as well, arsenal would be a good place.
There was a problem hiding this comment.
they are not going to be used in other projects
There was a problem hiding this comment.
https://scality.atlassian.net/browse/ARSN-564 I moved the xml creation to cloudserver need to remove it from arsenal
There was a problem hiding this comment.
Pull request overview
This PR adds support for returning object checksums in the S3 GetObjectAttributes response, aligning the API behavior with checksum metadata already computed/stored during PUT operations.
Changes:
- Implement
Checksumattribute rendering inGetObjectAttributesXML responses based on object metadata. - Extend checksum algorithm registry with
GetObjectAttributesXML tag names. - Update/add unit and functional tests to validate checksum behavior (present when requested and available; absent otherwise).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
lib/api/objectGetAttributes.js |
Removes the previous NotImplemented behavior and passes logger through to XML attribute builder. |
lib/api/apiUtils/object/objectAttributes.js |
Adds Checksum attribute XML generation based on stored checksum metadata + algorithm tag mapping. |
lib/api/apiUtils/integrity/validateChecksums.js |
Adds getObjectAttributesXMLTag metadata per algorithm to drive XML output. |
tests/unit/api/objectGetAttributes.js |
Updates existing test and adds checksum-focused unit coverage for GetObjectAttributes output. |
tests/unit/api/apiUtils/object/objectAttributes.js |
Adds unit coverage for checksum XML rendering (including unknown/absent checksum cases). |
tests/functional/aws-node-sdk/test/object/objectGetAttributes.js |
Updates functional expectations to validate checksum output and adds checksum-focused functional tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Nit: This file is using 2-space indentation. Please switch to 4 spaces to match our formatting rules
63c5751 to
d396ffe
Compare
|
LGTM |
|
ping |
|
/approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-874. Goodbye leif-scality. The following options are set: approve |
No description provided.