Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node accepts objects with non unique attributes #633

Closed
alexvanin opened this issue Jun 22, 2021 · 0 comments · Fixed by #642
Closed

Node accepts objects with non unique attributes #633

alexvanin opened this issue Jun 22, 2021 · 0 comments · Fixed by #642
Assignees
Labels
bug Something isn't working neofs-storage Storage node application issues

Comments

@alexvanin
Copy link
Contributor

Expected Behavior

Storage nodes do not accept object put requests with non unique attributes (according to specification).

Current Behavior

User can create object with non unique attributes in CLI and storage nodes will successfully proceed it.

Steps to Reproduce (for bugs)

$ ./bin/neofs-cli -r [...] --binary-key [...] object put --cid  [...] \
--file ./LICENSE \
--attributes FileName=ESNECIL
[./LICENSE] Object successfully stored

$ ./bin/neofs-cli -r [...] --binary-key [...] object head --cid [...] --oid [...]
...
Attributes:
  FileName=ESNECIL
  FileName=LICENSE

Your Environment

neofs-node v0.21.0-77-g8fac4acd

cthulhu-rider pushed a commit to cthulhu-rider/neofs-node that referenced this issue Jun 23, 2021
Keys of object attributes must be unique according to NeoFS specification.

Make `FormatValidator.Validate` method to return an error if at least one
attribute is duplicated.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-node that referenced this issue Jun 23, 2021
Values of object attributes must not be empty according to NeoFS
specification.

Make `FormatValidator.Validate` method to return an error if at least one
attribute has empty value.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-node that referenced this issue Jun 23, 2021
Values of object attributes must not be empty according to NeoFS
specification.

Make `FormatValidator.Validate` method to return an error if at least one
attribute has empty value.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
cthulhu-rider pushed a commit to cthulhu-rider/neofs-node that referenced this issue Jun 23, 2021
Values of object attributes must not be empty according to NeoFS
specification.

Make `FormatValidator.Validate` method to return an error if at least one
attribute has empty value.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-storage Storage node application issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants