8000 Startup load accepts non-UTF-8 key names that SET and RESTORE refuse · Issue #446 · kividbio/kividb · GitHub
[go: up one dir, main page]

Skip to content

Startup load accepts non-UTF-8 key names that SET and RESTORE refuse #446

Open

Description

@murtazayusuf

A key named bad:\xff\xfe, fetched from Valkey with valkey-cli --rdb and loaded with --preload-file, loads with no warning, and DBSIZE counts it. But SET or RESTORE of the same name answers ERR key must be valid UTF-8. So the server holds a key that clients can't recreate.

Fix: one rule everywhere. #437, binary-safe keys, accepts such keys everywhere and will resolve this; this issue tracks it until then.

Found while testing the migration guides (kividb.io/docs/migrate) against KiviDB 1.2.0, on Linux x86_64 release builds.

Activity

  1. added this to the 1.2.1 milestone on Nov 5, 2026
  2. added a commit that references this issue on Nov 6, 2026
    5cbbd98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0