8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path#29264
8272758: Improve HttpServer to avoid partial file name matches while mapping request path to context path#29264vy wants to merge 9 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back vyazici! A progress list of the required criteria for merging this PR into |
|
@vy This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 40 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@vy Unknown command |
Webrevs
|
|
/csr |
|
@vy has indicated that a compatibility and specification (CSR) request is needed for this pull request. @vy please create a CSR request for issue JDK-8272758 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
|
@Michael-Mc-Mahon, @dfuch, in e80aabc, I've added the Module Summary page
|
src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpServer.java
Outdated
Show resolved
Hide resolved
|
I wonder if we will be asked to change the name of the property in the CSR review. We typically do not use the |
I see. I was not aware of this convention for new properties. I presume we will iron that out in the CSR review. |
|
@dfuch, @Michael-Mc-Mahon, thanks so much for your patience and kind assistance. Using ed44cf3, I've verified that the HTML-rendered API specification (using /integrate |
|
Going to push as commit bea48b5.
Your commit was automatically rebased without conflicts. |


Currently
HttpServerallows matching a request path/foobarto context path/foo. Replace this surprising behaviour with a safer approach by requiring exact path prefix matches.Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/29264/head:pull/29264$ git checkout pull/29264Update a local copy of the PR:
$ git checkout pull/29264$ git pull https://git.openjdk.org/jdk.git pull/29264/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 29264View PR using the GUI difftool:
$ git pr show -t 29264Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/29264.diff
Using Webrev
Link to Webrev Comment