On Thu, 8 May 2025 09:01:33 GMT, Volkan Yazici <vyaz...@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 <vyaz...@openjdk.org> Committer: Michael McMahon <micha...@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