envoyproxy / envoyproxy/gateway

ReplacePrefixMatch in the URLRewrite filter does not handle empty match prefix correctly

Ouverte
#5,256 6 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
help wanted kind/bug
Langage dominant
Go
Étoiles
3k
Forks
864
Merge moyen
2 j 2 h
PR mergées (30 j)
140

Description

*Description*:

In its [examples](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.HTTPPathModifier), the Gateway API uses "foo" in "Prefix Match". However, we can conclude that the `HTTPPathModifier` should also work on `/` as the path prefix match.

The PR #5254 PR demonstrates that `/` is not handled correctly.

*Repro steps*:

Follow the end-2-end test, which is added in #5254

*Environment*:

In our environment, we use `docker.io/envoyproxy/gateway:v1.3.0`. The bug is reproducible in the `main` branch, and is reproducible in `v1.2.5`

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.