Skip to content

Require API 2.22+ requests - #4212

Merged
roman-khimov merged 3 commits into
masterfrom
api-version-min
Oct 5, 2026
Merged

roman-khimov merged 3 commits into
masterfrom
api-version-min

Conversation

@cthulhu-rider

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 28.57143% with 70 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.36%. Comparing base (4c813ae) to head (404654f).

Files with missing lines Patch % Lines
pkg/services/object/server.go 24.52% 40 Missing ⚠️
pkg/services/container/server.go 16.66% 10 Missing ⚠️
pkg/services/netmap/server.go 0.00% 6 Missing ⚠️
cmd/neofs-node/reputation.go 0.00% 4 Missing ⚠️
pkg/services/object/get.go 0.00% 4 Missing ⚠️
pkg/services/accounting/server.go 0.00% 3 Missing ⚠️
pkg/services/session/server.go 0.00% 2 Missing ⚠️
pkg/services/object/util.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4212      +/-   ##
==========================================
- Coverage   31.45%   31.36%   -0.09%     
==========================================
  Files         677      677              
  Lines       41572    41479      -93     
==========================================
- Hits        13075    13011      -64     
+ Misses      28497    28468      -29     

☔ 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 5, 2026 14:02
Started to occur from ca18db6, but this
is rather a consequence of 6013408 flaw.

Previously following panic could occur:
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xcc4d86]

goroutine 166 [running]:
github.com/nspcc-dev/neofs-node/pkg/services/accounting.(*server).makeBalanceResponse(0x21f2b7336f8, 0x0, 0x21f2b8decc0, 0x0)
	github.com/nspcc-dev/neofs-node/pkg/services/accounting/server.go:49 +0x26
github.com/nspcc-dev/neofs-node/pkg/services/accounting.(*server).makeFailedBalanceResponse(0x21f2b7336f8, {0x17a3780?, 0x21f2b774270?}, 0x0)
	github.com/nspcc-dev/neofs-node/pkg/services/accounting/server.go:64 +0x45
github.com/nspcc-dev/neofs-node/pkg/services/accounting.(*server).Balance(0x21f2b7336f8, {0x14f0120?, 0x4c6853?}, 0x21f2d1b0080)
	github.com/nspcc-dev/neofs-node/pkg/services/accounting/server.go:71 +0x2c5
```

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
Requests without API version in meta header or with one earlier than
2.22 are denied now.

Refs #3886.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
a18ff67ee9be934c39dc9e5d798bbf20de5cf214 made it unreachable.

Closes #3886.

Signed-off-by: Leonard Liubich <leonard@morphbits.io>
@roman-khimov
roman-khimov merged commit 1ff91e2 into master Oct 5, 2026
20 of 22 checks passed
@roman-khimov
roman-khimov deleted the api-version-min branch October 5, 2026 16:55
roman-khimov pushed a commit to nspcc-dev/neofs-testcases that referenced this pull request Oct 6, 2026
Fixes storage group tests failure with post-0.57.0 node requiring API 2.22+,
see nspcc-dev/neofs-node#4212.

Newer API (like 2.27) requires signature updates, so not done for now.

Co-authored-by: Roman Khimov <roman @nspcc.ru>
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