Refactor user.ID.ScriptHash()
usage #1618
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1618
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "elebedeva/frostfs-node:fix/sdk-user-id-scripthash"
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?
Related to TrueCloudLab/frostfs-sdk-go#302
user.ID.ScriptHash()
does not return an error anymore.Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com
user.ID.ScriptHash()
usageRefactorto WIP: Refactoruser.ID.ScriptHash()
usageuser.ID.ScriptHash()
usagef0e603785c
toec83958eb5
ec83958eb5
to85f336466a
WIP: Refactorto Refactoruser.ID.ScriptHash()
usageuser.ID.ScriptHash()
usage@ -20,3 +20,3 @@
const (
testOwnerID = "FPPtmAi9TCX329"
testOwnerID = "NURFM8PWbLA2aLt2vrD8q4FyfAdgESwM8y"
Hm, why didn't our decoding function catch this earlier?
user.ID
was a byte slice anduser.ID.DecodeString()
didn't check length and format of byte slices decoded from strings.Also, in these teststestOwnerID
was used only to decode container owner id and to compare it with owner id encoded back to string.85f336466a
toae851b3922
dstepanov-yadro referenced this pull request2025-01-30 13:17:31 +00:00