mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
Verify storage policy in proto/binary/JSON decoders #282
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Oct 15, 2025).
See checks in
nspcc-dev/neofs-sdk-go@05e793c06b/netmap/node_info.go (L37). I'd expect the same thing here, soVerify()can be called right in the PlacementPolicy.fromProtoMessageOriginally posted by @roman-khimov in https://github.com/nspcc-dev/neofs-sdk-go/pull/736#discussion_r2432324517
@cthulhu-rider commented on GitHub (Oct 15, 2025):
see also #638
@cthulhu-rider commented on GitHub (Oct 15, 2025):
also, behavior should be the same for all types across the lib
@roman-khimov commented on GitHub (Oct 15, 2025):
My point is that there are
proto/*things for "strange" structures, one can decode into these basic structs and go. While upper-lever netmap/object/etc types should be designed for safer use, like when you unmarshal them from any source you don't get something that's broken by definition.