envoyproxy/gateway

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

Open

#5.256 geöffnet am 11. Feb. 2025

Auf GitHub ansehen
 (6 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Go (802 Forks)auto 404
help wantedkind/bug

Repository-Metriken

Stars
 (2.871 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Description:

In its examples, 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

Contributor Guide