RFR: 8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path [v5]
Volkan Yazici
vyazici at openjdk.org
Mon Feb 16 19:27:29 UTC 2026
> Currently `HttpServer` allows matching a request path `/foobar` to context path `/foo`. Replace this surprising behaviour with a safer approach by requiring exact *path prefix matches*.
>
>
> | Request path
> Context +------+-------+----------+---------
> path | /foo | /foo/ | /foo/bar | /foobar
> ---------+------+-------+----------+---------
> / | Y | Y | Y | Y
> /foo/ | N | Y | Y | N
Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
State that the property is temporary
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29264/files
- new: https://git.openjdk.org/jdk/pull/29264/files/03cab635..24fca745
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29264&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29264&range=03-04
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/29264.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29264/head:pull/29264
PR: https://git.openjdk.org/jdk/pull/29264
More information about the net-dev
mailing list