git: openjdk/jdk: master: 8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path

Volkan Yazici vyazici at openjdk.org
Thu Feb 19 09:49:17 UTC 2026


Changeset: bea48b54
Branch: master
Author:    Volkan Yazici <vyazici at openjdk.org>
Date:      2026-02-19 09:44:00 +0000
URL:       https://git.openjdk.org/jdk/commit/bea48b54e2f423693e1e472129a86b030baf9eee

8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path

Reviewed-by: dfuchs

! src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpServer.java
! src/jdk.httpserver/share/classes/module-info.java
! src/jdk.httpserver/share/classes/sun/net/httpserver/ContextList.java
+ test/jdk/com/sun/net/httpserver/ContextPathMatcherPathPrefixTest.java
+ test/jdk/com/sun/net/httpserver/ContextPathMatcherStringPrefixTest.java
! test/jdk/java/net/httpclient/PlainProxyConnectionTest.java



More information about the jdk-changes mailing list