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

*: forbid zero byte in attributes #323

Merged
merged 1 commit into from
Feb 22, 2025
Merged

*: forbid zero byte in attributes #323

merged 1 commit into from
Feb 22, 2025

Conversation

roman-khimov
Copy link
Member

While technically this is a valid UTF-8 character in practice:

  • it's a string terminator in C and some software can help problems with it
  • we'd like to use it for internal purposes when working with DBs, it's a very convenient separator
  • no one uses it and no one should be using it

While technically this is a valid UTF-8 character in practice:
 * it's a string terminator in C and some software can help problems with it
 * we'd like to use it for internal purposes when working with DBs, it's a very
   convenient separator
 * no one uses it and no one should be using it

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov added the enhancement Improving existing functionality label Feb 21, 2025
@roman-khimov roman-khimov added this to the v2.17.0 milestone Feb 21, 2025
cthulhu-rider added a commit to nspcc-dev/neofs-node that referenced this pull request Feb 21, 2025
Zero byte is forbidden starting from
nspcc-dev/neofs-api#323.

This make `ObjectService.Put` server to deny object with least one
attribute with zero byte in either key or value.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants