singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Java Service] validation response message is different for get/post api when key contain extend ASCII

Open JiLiang888 opened this issue 2 years ago • 0 comments

Describe the bug [BUG] [Java Service] validation response message is different for get/post api when key contain extend ASCII

To Reproduce

  1. use get/post/put api
  2. key contains extend ascii ,such as : © §

and can see response below : Get API { "code" : 400, "message" : "Incorrect key(only allows ASCII char)", "serverTime" : "" } POST API:

image { "code" : 400, "message" : "Incorrect key name '�' contains non-ASCII char(only allows ASCII char)", "serverTime" : "" }

image image

{ "code" : 400, "message" : "Incorrect key(only allows ASCII char)", "serverTime" : "" }

Expected behavior

please keep same for all apis if key cantains extend ascii

"message" : "Incorrect key name '®' contains non-ASCII char(only allows ASCII char)",

commit 93ffa26a7c0616ff7fee3eb25318342d1dc8975b

JiLiang888 avatar Jul 28 '22 09:07 JiLiang888