redis / redis/RedisInsight

[Bug]: Hash field values with leading zeros (e.g. "00014") are stripped/displayed as numbers in Browser view

Open
#6,269 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.8k
Forks
491
Avg merge
1d 22h
Merged PRs (30d)
49

Description

Preconditions:
A Redis hash exists with a string field whose value contains leading zeros (e.g. "00014").

Steps to reproduce:

  1. Using redis-cli (or another client), create a hash with a string field containing leading zeros:
HSET myhash productInfoID "00014"
  1. Confirm via redis-cli that the value is stored correctly:
   HGET myhash productInfoID
   -> "00014"
  1. Open the same key (myhash) in RedisInsight's view and inspect the productInfoID field value.

Actual behavior:

RedisInsight displays the field value as 14, with the leading zeros stripped, even though the underlying value stored in Redis is the string "00014" (confirmed via redis-cli).

Expected behavior :
RedisInsight should display the exact string value as stored, "00014", without stripping leading zeros or reformatting it as a number.

Screenshots :

Image Image

Additional context:
Operating system: Windows 11
RedisInsight version: 3.8
Redis server version: 8.8.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided HSET command, confirm the stored value with redis-cli, then inspect the RedisInsight Browser view's TypeScript rendering path for Redis hash values. Done means the view preserves "00014" exactly without numeric reformatting, with a regression check covering the leading-zero case.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, typescript
Domain
databases, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.