Skip to content

fix: Enforce exact path match on extra routes#95

Merged
thced merged 1 commit into
masterfrom
fix/exact-urls
May 22, 2026
Merged

fix: Enforce exact path match on extra routes#95
thced merged 1 commit into
masterfrom
fix/exact-urls

Conversation

@thced

@thced thced commented May 22, 2026

Copy link
Copy Markdown
Contributor

JDK HttpServer.createContext does prefix matching, so /health and /alive were dispatched for /health232 or /alive/34. ExtraRouteAdapter now rejects any request whose path does not exactly equal the registered route.

JDK HttpServer.createContext does prefix matching, so /health and /alive
were dispatched for /health232 or /alive/34. ExtraRouteAdapter now rejects
any request whose path does not exactly equal the registered route.
@sonarqubecloud

Copy link
Copy Markdown

@thced thced merged commit 2884d2a into master May 22, 2026
6 checks passed
@thced thced deleted the fix/exact-urls branch May 22, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant