You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pipe character does not seem to work in Istio's VirtualService.
The example below is intended to route requests based on the user-agent header. Requests from a mobile device should go to myapp and requests from a desktop user should go to deskt-app, handled by next match block. The <REGEX> field works when I use this regex:
^.*\bMobile\b.*$
But the powers that be require a more sophisticated regex to identify mobile users. My routing breaks entirely when I use these:
This is superficially similar to #10666 , however, my application is in fact sending the user-agent header.
mehemken
changed the title
VirtualService HTTPMatchRequest.regex ignores pipes and breaks
VirtualService HTTPMatchRequest.regex ignores/breaks when using pipes
Jan 6, 2019
mehemken
changed the title
VirtualService HTTPMatchRequest.regex ignores/breaks when using pipes
VirtualService HTTPMatchRequest.regex breaks when using pipes
Jan 6, 2019
Describe the bug
As seen on StackOverflow.
The pipe character does not seem to work in Istio's VirtualService.
The example below is intended to route requests based on the user-agent header. Requests from a mobile device should go to myapp and requests from a desktop user should go to deskt-app, handled by next match block. The <REGEX> field works when I use this regex:
But the powers that be require a more sophisticated regex to identify mobile users. My routing breaks entirely when I use these:
Expected behavior
Using a regex with a pipe (logical OR) I expect to be routed to myapp when I have a user-agent header that contains the word "iPhone" or "Pixel".
Actual behavior
I get routed to deskt-app.
Steps to reproduce the bug
Version
K8s
kubectl Client: 1.9.9
kubectl Server: 1.10.9-gke.5
Istio
Version: 1.0.5
GitRevision: c1707e4
User: root@6f6ea1061f2b
Hub: docker.io/istio
GolangVersion: go1.10.4
BuildStatus: Clean
Installation
With the Helm chart.
Environment
GKE
The text was updated successfully, but these errors were encountered: