dotnet / dotnet/yarp

Make Exists Mode for QueryParameters support empty parameters

Open
#2,568 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
9.6k
Forks
933
Avg merge
12d 18h
Merged PRs (30d)
2

Description

### Discussed in https://github.com/microsoft/reverse-proxy/discussions/2553

Originally posted by **ppv-milestone** July 17, 2024
We need to match queries to an interface that accepts a request like this:
http://path/component?hello
But according to documentation the "Exists" Mode in QueryParameters will only match against non-empty parameters and our tests show that Prefix, Exact and Contains seem to be following the same (providing "" as a value to match for causes the service to fail).
Also tried with regular expressions in Path, but those does not seem to match on parameters.
Anyone has a workaround for this? Or maybe supporting empty parameters for Exists could be supported in next version?
Thanks a lot in advance!
Br,
Peter

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.