Skip to content

sn/object: Fix unchecked known length of unfinished objects in PUT - #4233

Merged
roman-khimov merged 1 commit into
masterfrom
put-payload-len
Oct 22, 2026
Merged

roman-khimov merged 1 commit into
masterfrom
put-payload-len

Conversation

@cthulhu-rider

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.20%. Comparing base (0e9709b) to head (9803161).

Files with missing lines Patch % Lines
pkg/services/object/server.go 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4233      +/-   ##
==========================================
- Coverage   32.21%   32.20%   -0.02%     
==========================================
  Files         674      674              
  Lines       41343    41348       +5     
==========================================
- Hits        13320    13317       -3     
- Misses      28023    28031       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cthulhu-rider
cthulhu-rider marked this pull request as ready for review October 16, 2026 16:02
Comment thread pkg/services/object/server.go Outdated
According to API, unknown length of unprepared object must be set to
0xFFFFFFFFFFFFFFFF. Otherwise, number of payload bytes sent must
equal the field value. Previously, PUT server never checked the payload
length of unfinished objects. However, clients could leave the value
unspecified (zero) due to carelessness. Therefore, this adds a
zero-exclusion check.

Fixes #4208.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Comment thread pkg/services/object/server.go
@roman-khimov
roman-khimov merged commit a9fb6c5 into master Oct 22, 2026
20 of 22 checks passed
@roman-khimov
roman-khimov deleted the put-payload-len branch October 22, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants