Integrated: 8355360: -d option of jwebserver command should accept relative paths

Volkan Yazici vyazici at openjdk.org
Tue May 13 08:01:01 UTC 2025


On Thu, 8 May 2025 09:01:33 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

> Allows relative paths in the content root directory passed to the `jwebserver`. Changes effect both the `jwebserver` executable and the `java -m jdk.httpserver` execution.
> 
> ### Implementation notes
> 
> Received `Path` is read using `toRealPath()`, and then employed in `s.n.h.s.FileServerHandler`, which is the only place in the web server code where an absolute path requirement is present.

This pull request has now been integrated.

Changeset: ad161a4e
Author:    Volkan Yazici <vyazici at openjdk.org>
Committer: Michael McMahon <michaelm at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ad161a4ef85e03d4b7be3df2d584356bf4f7cc80
Stats:     172 lines in 6 files changed: 96 ins; 28 del; 48 mod

8355360: -d option of jwebserver command should accept relative paths

Reviewed-by: dfuchs, michaelm

-------------

PR: https://git.openjdk.org/jdk/pull/25113


More information about the net-dev mailing list