-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use a regex with multiple subroute of VirtualServerRoute #5258
Comments
Hi @lucaspouzac thanks for reporting! Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this 🙂 Cheers! |
As this issue : #797, maybe a regression on latest version 3.4.3 ? |
Hi @lucaspouzac this is the expected behavior, since we did not intend to allow paths in VS and the VSR referenced to be in different types (prefix, regex, exact paths). The reason you were able to do this in the previous releases was due to a bug, which if you have a prefix subroute path in the virtual server and a regex subroute path in VSR, the validation is skipped, which means not only For your specific example, you might want to separate the subroute path in your VS into one prefix path and one regex subroute path, such as the following.
Please let me know if this works for you or if you have any feedbacks. |
Hi @haywoodsh, this is what I did to get around the problem. It works well technically. But different teams manage the VirtualServer (ops team) and the VirtualServerRoute (apps teams). This adds a strong relationship between ops teams and apps teams. Teams apps cannot be autonomous when delegating a complete application if there is a need to use regex. I don't understand the blocking to allow this operation if no regex is used on the VirtualServer side. Is there just a need to validate that the virtualServer path matches the different virtualServerroute paths? |
In idea, the algorithm could be this?
Maybe missing cases ? |
Hi @lucaspouzac, as @haywoodsh mentioned before, this is expected behaviour: "we did not intend to allow paths in VS and the VSR referenced to be in different types (prefix, regex, exact paths). The reason you were able to do this in the previous releases was due to a bug" |
same problem here. I was having virvualserversroutes like
but the VirtualServer was in exact form
using the same regex on both vsr and vs solved my problem |
This is creating a lot of useless overhead by splitting each regex path into a seperate virtualserver. As far as I understood @rmacian the fix was more on the validation side. This means the previous sturcutre 1 prefix virtualserver and then many diffrent on the virtualserver route side. For me the question now is should I do the overhead by touching all virtualserver and create additonal virtualserver route or I move everything into my virtualserverroute and I don't have any issues anymore. What would recommend me. Is there any advantage from now to use both resources? |
I would like to delegate a complete route defined in the VirtualServer to the subroute level of the VirtualServerRoute and use regex on subroute.
When I create these VS/VSR, a warning is throwed.
The text was updated successfully, but these errors were encountered: