RFR: 8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path [v6]
Volkan Yazici
vyazici at openjdk.org
Wed Feb 18 14:20:44 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:
Shorten the temporary property warning
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29264/files
- new: https://git.openjdk.org/jdk/pull/29264/files/24fca745..7116aa2f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29264&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29264&range=04-05
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 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