Miladiir opened a new issue, #3145:
URL: https://github.com/apache/apisix-dashboard/issues/3145

   ### 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-unsubscr...@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to