You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Miladiir (via GitHub)" <gi...@apache.org> on 2025/07/12 09:37:24 UTC
[I] bug: route vars cannot be displayed or edited using new admin ui / dashboard [apisix]
Miladiir opened a new issue, #12421:
URL: https://github.com/apache/apisix/issues/12421
### Current Behavior
Tried to put admin ui behind sso by using regular expression to match route. As far as I understand, i need to create a route for root with vars matching the apisix admin ui and admin api paths.
Minimal example that create the bug:
route: `{ "uri": "/*", "vars": [ [ "uri", "~~", "^/(ui|apisix).*$" ] ] }`
I was not able to modify or create a new route that would accept the vars using the new dashboard / admin ui. So, i turned to the admin api and created a new route.
Now, trying to view the route in the new admin ui / dashboard ui, i receive a javascript error: a.trim is not a function
Seems like handling vars, atleast with medium complexity, is not working either way with the admin ui. Neither creating or viewing seems to work.
Seems like you guys are handling this field in the ui completely wrong :( The rest of the new ui is working much better than the old sone though. Great job!
### Expected Behavior
Able to create, edit and view routes with vars.
### Error Logs
_No response_
### Steps to Reproduce
1. Try to input any vars into a route: Route is not able to be submitted.
1. Try to open a route with any vars: The route cannot be opened due to client side javascript error. Trying to call string method on an array.
### Environment
- APISIX version (run `apisix version`): 3.13
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: route vars cannot be displayed or edited using new admin ui / dashboard [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12421:
URL: https://github.com/apache/apisix/issues/12421#issuecomment-3071761590
After verification, this problem does exist. I cannot use vars when creating a route using the UI. I used the admin api to create a route configuration as follows:
```
{
"uri": "/*",
"upstream": {
"nodes": {
"httpbin.org:80": 1
}
},
"vars": [
[
"uri",
"~~",
"^/(ui|apisix).*$"
]
]
}
```
And then the page crashed when I entered the route details in the UI.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: route vars cannot be displayed or edited using new admin ui / dashboard [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12421:
URL: https://github.com/apache/apisix/issues/12421#issuecomment-3071762995
This is a dashboard issue. I will transfer this issue.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: route vars cannot be displayed or edited using new admin ui / dashboard [apisix]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12421:
URL: https://github.com/apache/apisix/issues/12421#issuecomment-3067018338
Thanks for the report, I will check this out.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org