Skip to content

Binary data is mangled by redis-commander #593

@CNDW

Description

@CNDW

When binary data is retrieved, it's using the ioredis.get api returns the response as a utf-8 string. decoding the binary data as utf-8 results in mangled payloads because the utf-8 decode process replaces unknown bytes with the unicode replacement character . The mangled data is not readable.

Redis-commander should use the ioredis.getBuffer and only decode if the data is a string type, otherwise put the raw bytes through the base64 encoding process to ensure that the data is not mangled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions