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/04 04:11:52 UTC
[GitHub] [apisix-dashboard] idbeta opened a new issue #1186: bug: route's label search is return 400
idbeta opened a new issue #1186:
URL: https://github.com/apache/apisix-dashboard/issues/1186
# Bug report
## Describe the bug
the lable of route is `a:1`
when search on route, is return 400.
```
Request URL: http://127.0.0.1:9000/apisix/admin/routes?label=a%3A1%2C&page=1&page_size=20
Request Method: GET
Status Code: 400 Bad Request
Response: {"code":10000,"message":"malformed label: \"a:1,\"","data":null,"request_id":"23661bdf-dbd4-47f1-9a7c-d0c5783a4cbe"}
```
## How to Reproduce

----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] LiteSun commented on issue #1186: bug: route's label search is return 400
Posted by GitBox <gi...@apache.org>.
LiteSun commented on issue #1186:
URL: https://github.com/apache/apisix-dashboard/issues/1186#issuecomment-753815455
OK, I'll fix it.
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] starsz edited a comment on issue #1186: bug: route's label search is return 400
Posted by GitBox <gi...@apache.org>.
starsz edited a comment on issue #1186:
URL: https://github.com/apache/apisix-dashboard/issues/1186#issuecomment-753766340
@juzhiyuan. If only one label, it shouldn't contain ",".
Like this:
`http://127.0.0.1:9000/apisix/admin/routes?label=a:1&page=1&page_size=20`
And this:
`http://127.0.0.1:9000/apisix/admin/routes?label=a:1,b:1&page=1&page_size=20`
cc @LiteSun
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] starsz commented on issue #1186: bug: route's label search is return 400
Posted by GitBox <gi...@apache.org>.
starsz commented on issue #1186:
URL: https://github.com/apache/apisix-dashboard/issues/1186#issuecomment-753766340
@juzhiyuan. If only one label, it shouldn't contain ",".
Like this:
`http://127.0.0.1:9000/apisix/admin/routes?label=a:1&page=1&page_size=20`
And this:
`http://127.0.0.1:9000/apisix/admin/routes?label=a:1,b:1&page=1&page_size=20`
----------------------------------------------------------------
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
[GitHub] [apisix-dashboard] juzhiyuan closed issue #1186: bug: route's label search is return 400
Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #1186:
URL: https://github.com/apache/apisix-dashboard/issues/1186
----------------------------------------------------------------
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