caihonghaoCYF opened a new issue, #11841:
URL: https://github.com/apache/apisix/issues/11841
### Current Behavior
When I use the trafficsplit plugin to split traffic, when my front-end sends
a cookie with the value "OnlyHttp;orderNo=F30", it cannot match the normal F30
upstream. When I debugged, I found that apisix parsed this cookie into the key
OnlyHttp;orderNo, but the key should actually be orderNo.
### Expected Behavior
_No response_
### Error Logs
_No response_
### Steps to Reproduce
1. craete route
{
"update_time": 1732544554,
"create_time": 1732539917,
"hosts": [
"a.test.com"
],
"upstream_id": "734215018329804800",
"priority": 1,
"uri": "/e",
"status": 1,
"plugins": {
"client-control": {
"max_body_size": 4194304
},
"traffic-split": {
"rules": [
{
"match": [
{
"vars": [
[
"cookie_orderNo",
"==",
"F30"
]
]
}
],
"weighted_upstreams": [
{
"weight": 1,
"upstream_id": "734068621429313536"
}
]
}
]
}
},
"id": "734215018329804800"
}
2. Send with cookie "HttpOnly;orderNo=F30"
### Environment
- APISIX version 3.1.0
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]