wiremock / wiremock/WireMock.Net

Bug: Path matching fails when the URL contains encoded parts

Open
#1,403 1 comment 0 reactions 1 assignee View on GitHub

@StefH is already working on this.

Since Dec 22, 2025.

bug
Dominant language
C#
Stars
1.7k
Forks
240
Avg merge
5d 12h
Merged PRs (30d)
2

Description

Describe the bug

It seems this issue is still there, also in ASP.NET Core?
https://github.com/wiremock/WireMock.Net/issues/178
When matching the url, escaped elements remain escaped, as expected (url/escapedchar%2Finpathsegment/restofurl
When matching the path, escaped elements are unescaped, as notexpected (url/escapedchar/inpathsegment/restofurl
This gives unconsistent behaviour when matching the url

Expected behavior:

Both path en url should not be unescaped before matching

Other related info

I found this issue, but it is not clear that this behaviour is still expected?
https://github.com/wiremock/WireMock.Net/issues/178

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.