vmware / vmware/singleton

[BUG] [Go Service]Response 200 / 404 when key contain non-ASCII char in get keys api

Open
#2,520 0 comments 0 reactions 1 assignee View on GitHub

@Xiaochao8 is already working on this.

Since Jul 31, 2023.

area/go-service priority/medium
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

Describe the bug
[BUG] [Go Service]Response 200 / 404 when key contain non-ASCII char in get keys api

To Reproduce
Steps to reproduce the behavior:

  1. Go to this api
image
  1. input key as : Key©§¥1
  2. see response code is 200 ( files exist Key©§¥1)
image see response code is 404 ( files no exist Key1©§¥) image

Expected behavior
{
"response": {
"code": 400,
"message": "'Key©§¥1' is invalid(only standard ASCII characters are allowed)"
}
}

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.