singleton
singleton copied to clipboard
[BUG] [Java Service] validation response message is different for get/post api when key contain extend ASCII
Describe the bug [BUG] [Java Service] validation response message is different for get/post api when key contain extend ASCII
To Reproduce
- use get/post/put api
- 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:
{
"code" : 400,
"message" : "Incorrect key name '�' contains non-ASCII char(only allows ASCII char)",
"serverTime" : ""
}
{ "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