You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/01/21 06:58:26 UTC
[GitHub] [apisix] spacewander commented on issue #3380: bug: route's description input more than 200 Chinese characters, no error message, but the route is useless
spacewander commented on issue #3380:
URL: https://github.com/apache/apisix/issues/3380#issuecomment-764428267
Hey guys. Something you don't make it correct from the beginning:
https://github.com/api7/jsonschema/blob/b9375642eb2da0f20486a38025e511a12687b5d4/lib/jsonschema.lua#L365
The Lua implementation doesn't use `#` to get the length of data. Instead, it counts the string length instead of the string bytes.
> If we need to limit the length of use input characters, we'd better limit the string length instead of string byte length
Yes. We have already done this.
Maybe there is something else causes the problem.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org