RFR: 8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path [v2]
Volkan Yazici
vyazici at openjdk.org
Mon Feb 2 20:21:45 UTC 2026
On Thu, 29 Jan 2026 14:51:15 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add property to switch between prefix matching schemes
>
> src/jdk.httpserver/share/classes/module-info.java line 110:
>
>> 108: *
>> 109: * The path matching scheme used to route requests to context handlers.
>> 110: * Following list of values are allowed by this property.</p>
>
> Suggestion:
>
> * The property can be configured with one of the following values:</p>
Fixed in e55e6050466.
> src/jdk.httpserver/share/classes/module-info.java line 120:
>
>> 118: * but not {@code /foobar}.</dd>
>> 119: * <dt>{@code stringPrefix}</dt>
>> 120: * <dd>Request path string must begin with the context path string. For
>
> Suggestion:
>
> * <dd>The request path string must begin with the context path string. For
Fixed in e55e6050466.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29264#discussion_r2756003925
PR Review Comment: https://git.openjdk.org/jdk/pull/29264#discussion_r2756004259
More information about the net-dev
mailing list