mirror of
https://github.com/nspcc-dev/neofs-http-gw.git
synced 2026-03-01 04:29:08 +00:00
After loading an object via http with the same attribute key values, one of the attributes is deleted. #82
Labels
No labels
I1
I3
I4
S2
S3
S4
U2
U2
U3
U4
blocked
bug
config
documentation
enhancement
go
good first issue
help wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-http-gw#82
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 @acheyda on GitHub (Oct 31, 2022).
Originally assigned to: @ir0nbee on GitHub.
After loading an object via http with the same attribute key values, one of the attributes is deleted.
Expected Behavior
4096 / 31238065 [>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.01% 0s
rpc error: client failure: status: code = 1024 message = duplication of attributes detected
Current Behavior
{
"object_id": "Fqso6FXSruE53272ZpNurP2K6AYXBGrsLRxaboEwuQxA",
"container_id": "HbwGNLHh4nUN9RUeWdCPJAD98aYRkYqVpN42awQh2u2R"
}
Possible Solution
From the user's side, after loading an object with the same attribute keys, the user expects to see them, but in fact, one of the attributes will not.
Maybe we should make a notification like in grpc that it is impossible to load an object with the same attribute keys?
Steps to Reproduce (for bugs)
1.Create an object
2.Check the result:
Your Environment
NeoFS HTTP Gateway
Version: v0.24.0-17-g1b172e58
GoVersion: go1.18.4
@alexvanin commented on GitHub (Nov 3, 2022):
Native protocol returns error. Gateway should not decide which attribute is valid, so let's return an error in this case.