Re: RFR: JDK-8282354 : Remove dependancy of TestHttpServer, HttpTransaction, HttpCallback from open/test/jdk/ tests

2022-02-25 Thread Julia Boes
On Thu, 24 Feb 2022 16:01:57 GMT, Mahendra Chhipa wrote: > Updated following remaining tests to remove depenedies of TestHttpServer, > HttpTransaction, HttpCallback > open/test/jdk/java/net/ProxySelector/LoopbackAddresses.java > open/test/jdk/java/net/ProxySelector/ProxyTest.java >

Integrated: 8281305: Test com/sun/net/httpserver/simpleserver/MapToPathTest.java fails on Windows 11

2022-02-17 Thread Julia Boes
On Tue, 15 Feb 2022 13:06:29 GMT, Julia Boes wrote: > This change adds a check for URI path segments that look like a root drive on > Windows, e.g. "C:". Such path segments are not supported because a request > path should really be relative to the working direct

Re: RFR: 8281305: Test com/sun/net/httpserver/simpleserver/MapToPathTest.java fails on Windows 11 [v2]

2022-02-16 Thread Julia Boes
ecific helper class, some > additional test cases are included. > > Testing: tier 1-3, common Windows versions. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: fix package hierarchy - Changes: - all: https://git.op

RFR: 8281305: Test com/sun/net/httpserver/simpleserver/MapToPathTest.java fails on Windows 11

2022-02-15 Thread Julia Boes
This change adds a check for URI path segments that look like a root drive on Windows, e.g. "C:". Such path segments are not supported because a request path should really be relative to the working directory. The check is implemented with a platform-specific helper class, some additional test

Integrated: 8280965: Tests com/sun/net/httpserver/simpleserver fail with FileSystemException on Windows 11

2022-02-07 Thread Julia Boes
On Thu, 3 Feb 2022 09:24:46 GMT, Julia Boes wrote: > This change updates the tests in question to handle the case where sym link > creation is not supported, as observed on Windows 11 where additional > privileges are required to create sym links. > > Testing: tier 1-3 across

Re: RFR: 8280965: Tests com/sun/net/httpserver/simpleserver fail with FileSystemException on Windows 11 [v2]

2022-02-04 Thread Julia Boes
> specifically Julia Boes has updated the pull request incrementally with two additional commits since the last revision: - refactor test helper method - change jtreg.SkippedException to testng.SkipException - Changes: - all: https://git.openjdk.java.net/jdk/pull/7335/fi

Re: RFR: 8280965: Tests com/sun/net/httpserver/simpleserver fail with FileSystemException on Windows 11

2022-02-03 Thread Julia Boes
On Thu, 3 Feb 2022 16:16:32 GMT, Michael McMahon wrote: >> This change updates the tests in question to handle the case where sym link >> creation is not supported, as observed on Windows 11 where additional >> privileges are required to create sym links. >> >> Testing: tier 1-3 across

RFR: 8280965: Tests com/sun/net/httpserver/simpleserver fail with FileSystemException on Windows 11

2022-02-03 Thread Julia Boes
This change updates the tests in question to handle the case where sym link creation is not supported, as observed on Windows 11 where additional privileges are required to create sym links. Testing: tier 1-3 across platforms, plus tests in question on Windows 11 specifically -

[jdk18] Integrated: 8280441: Missing "classpath exception" in several files from jdk.httpserver

2022-01-24 Thread Julia Boes
On Fri, 21 Jan 2022 14:38:08 GMT, Julia Boes wrote: > This change adds the classpath exception to the copyright header of the files > in question. As source files, they should have both the GPL and the classpath > exception. This pull request has now been integrated. Changeset:

[jdk18] RFR: 8280441: "classpath exception" in several files from jdk.httpserver

2022-01-21 Thread Julia Boes
This change adds the classpath exception to the copyright header of the files in question. As source files, they should have both the GPL and the classpath exception. - Commit messages: - initial commit Changes: https://git.openjdk.java.net/jdk18/pull/111/files Webrev:

Integrated: 8280161: com/sun/net/httpserver/simpleserver/jwebserver/MaxRequestTimeTest.java fails with SSLException

2022-01-20 Thread Julia Boes
On Wed, 19 Jan 2022 17:01:22 GMT, Julia Boes wrote: > Small test-only fix that generalizes the expected exception type from > SSLHandshakeException to SSLException (a super class of the former). > > Testing: tier 1-3 and repeated runs of test in question all clear This pull req

Re: RFR: 8280161: com/sun/net/httpserver/simpleserver/jwebserver/MaxRequestTimeTest.java fails with SSLException [v2]

2022-01-20 Thread Julia Boes
On Wed, 19 Jan 2022 17:16:30 GMT, Daniel Fuchs wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> address PR comment: remove bug id in test > > test/jdk/com/sun/net/http

Re: RFR: 8280161: com/sun/net/httpserver/simpleserver/jwebserver/MaxRequestTimeTest.java fails with SSLException [v2]

2022-01-20 Thread Julia Boes
> Small test-only fix that generalizes the expected exception type from > SSLHandshakeException to SSLException (a super class of the former). > > Testing: tier 1-3 and repeated runs of test in question all clear Julia Boes has updated the pull request incrementally with one additi

RFR: 8280161: com/sun/net/httpserver/simpleserver/jwebserver/MaxRequestTimeTest.java fails with SSLException

2022-01-19 Thread Julia Boes
Small test-only fix that generalizes the expected exception type from SSLHandshakeException to SSLException (a super class of the former). Testing: tier 1-3 and repeated runs of test in question all clear - Commit messages: - initial commit Changes:

Re: RFR: 8276166: Remove dead code from MimeTable and MimeEntry

2022-01-19 Thread Julia Boes
On Fri, 24 Dec 2021 20:12:39 GMT, Сергей Цыпанов wrote: >> There are unused methods/constructors in mentioned classes that can be >> safely removed. > > Not now Happy to /sponsor once you /integrate, @stsypanov. - PR: https://git.openjdk.java.net/jdk/pull/6169

Integrated: 8278398: jwebserver: Add test to confirm maximum request time

2022-01-14 Thread Julia Boes
On Wed, 12 Jan 2022 16:59:14 GMT, Julia Boes wrote: > This new test confirms that the jwebserver does not wait indefinitely for a > request to arrive, but instead closes the connection when the maximum request > time is reached. To facilitate this, Exchange::run is amended t

Re: RFR: 8278398: jwebserver: Add test to confirm maximum request time [v2]

2022-01-13 Thread Julia Boes
On Thu, 13 Jan 2022 04:52:25 GMT, Jaikiran Pai wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> address PR comments: >> * remove redundant null check >> * use try-fin

Re: RFR: 8278398: jwebserver: Add test to confirm maximum request time [v2]

2022-01-13 Thread Julia Boes
rrent thread is the dispatcher thread > (which is the case for the jwebserver). > > Testing: tier 1-3 all clear. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: address PR comments: * remove redundant null check * use try-fi

RFR: 8278398: jwebserver: Add test to confirm maximum request time

2022-01-12 Thread Julia Boes
This new test confirms that the jwebserver does not wait indefinitely for a request to arrive, but instead closes the connection when the maximum request time is reached. To facilitate this, Exchange::run is amended to process cancelled keys in the case where the current thread is the

Re: RFR: 8276166: Remove dead code from MimeTable and MimeEntry

2022-01-12 Thread Julia Boes
On Fri, 29 Oct 2021 11:20:57 GMT, Сергей Цыпанов wrote: > There are unused methods/constructors in mentioned classes that can be safely > removed. The changes look good to me. I also ran tier 1-3 across platforms - all clear. - PR: https://git.openjdk.java.net/jdk/pull/6169

RFR: 8278158: jwebserver should set request timeout

2021-12-07 Thread Julia Boes
This change sets a maximum request time for the `jwebserver` (and `java -m jdk.httpserver`), unless it has already been set. While here, I removed a comment from the implementation classes, a left-over from the pre-module era that is not needed and should not have been included in the first

Integrated: 8278154: SimpleFileServer#createFileServer() should specify that the returned server is not started

2021-12-03 Thread Julia Boes
On Thu, 2 Dec 2021 15:11:08 GMT, Julia Boes wrote: > This doc-only change amends the method-level documentation of > SimpleFileServer#createFileServer() to specify the state of the returned > server. This pull request has now been integrated. Changeset: 53df9ffb Author: Julia

Re: RFR: 8278154: SimpleFileServer#createFileServer() should specify that the returned server is not started

2021-12-02 Thread Julia Boes
On Thu, 2 Dec 2021 15:11:08 GMT, Julia Boes wrote: > This doc-only change amends the method-level documentation of > SimpleFileServer#createFileServer() to specify the state of the returned > server. CSR: https://bugs.openjdk.java.net/browse/JDK-8278159 -

RFR: 8278154: SimpleFileServer#createFileServer() should specify that the returned server is not started

2021-12-02 Thread Julia Boes
This doc-only change amends the method-level documentation of SimpleFileServer#createFileServer() to specify the state of the returned server. - Commit messages: - initial commit Changes: https://git.openjdk.java.net/jdk/pull/6674/files Webrev:

Re: Should SimpleFileServer#createFileServer() mention that the returned server isn't started?

2021-12-02 Thread Julia Boes
Hi Jaikiran, I agree, a sentence like "The returned server is not started." should be added, similar to the API doc of the new HttpServer::create. I filed an issue for it: https://bugs.openjdk.java.net/browse/JDK-8278154 While here, I'll fix the typo in the first line, too. Regards, Julia

Integrated: 8277459: Add jwebserver tool

2021-12-01 Thread Julia Boes
On Mon, 22 Nov 2021 09:43:19 GMT, Julia Boes wrote: > This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. This pull request has now been integrated. Changeset: f505396c Author: Jul

Re: RFR: 8277459: Add jwebserver tool [v6]

2021-11-29 Thread Julia Boes
> This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 16 commits: -

Re: RFR: 8277459: Add jwebserver tool [v3]

2021-11-29 Thread Julia Boes
On Thu, 25 Nov 2021 10:09:21 GMT, Daniel Fuchs wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix whitespace error, add missing code tag > > src/jdk.httpserver/share/classes/s

Re: RFR: 8277459: Add jwebserver tool [v5]

2021-11-29 Thread Julia Boes
> This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: update comment abo

Re: RFR: 8277459: Add jwebserver tool [v4]

2021-11-29 Thread Julia Boes
On Wed, 24 Nov 2021 14:05:03 GMT, Julia Boes wrote: >> src/jdk.httpserver/share/classes/com/sun/net/httpserver/SimpleFileServer.java >> line 110: >> >>> 108: * >>> 109: * A simple HTTP file server implementation is provided via the >>>

Re: RFR: 8277459: Add jwebserver tool [v4]

2021-11-29 Thread Julia Boes
> This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 14 commits: - a

Re: RFR: 8277459: Add jwebserver tool [v3]

2021-11-24 Thread Julia Boes
> This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: fix whitespace error, add miss

Re: RFR: 8277459: Add jwebserver tool [v2]

2021-11-24 Thread Julia Boes
> This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: address PR comments: * u

Re: RFR: 8277459: Add jwebserver tool

2021-11-24 Thread Julia Boes
On Wed, 24 Nov 2021 11:57:16 GMT, Daniel Fuchs wrote: >> This change introduces jwebserver, a dedicated JDK tool for the Simple Web >> Server. >> >> A description is provided in a follow-up comment. > > src/jdk.httpserver/share/classes/com/sun/net/httpserver/SimpleFileServer.java > line 110:

Re: RFR: 8277459: Add jwebserver tool

2021-11-24 Thread Julia Boes
On Mon, 22 Nov 2021 09:43:19 GMT, Julia Boes wrote: > This change introduces jwebserver, a dedicated JDK tool for the Simple Web > Server. > > A description is provided in a follow-up comment. This change adds a dedicated command-line tool for the Simple Web Server, to improve

RFR: 8277460: Add jwebserver tool

2021-11-24 Thread Julia Boes
This change introduces jwebserver, a dedicated JDK tool for the Simple Web Server. A description is provided in a follow-up comment. - Commit messages: - update module summary - Merge branch 'master' into jwebserver - add version option, consolidate tests, update module and

Re: JEP 408 - Should path within hidden directories/symlinks be allowed as root path?

2021-11-22 Thread Julia Boes
Hi Jaikiran, On 22/11/2021 09:29, Jaikiran Pai wrote: > The newly introduced simple webserver when launched from a directory > does necessary checks to disallow serving of hidden files (and > symlinks). So if I do something like: > > cd ~/ > > java -m jdk.httpserver > > and then issue a HTTP

Integrated: 8276848: sun.net.httpserver.simpleserver.CommandLinePositiveTest: test does not specify port

2021-11-12 Thread Julia Boes
On Thu, 11 Nov 2021 17:08:37 GMT, Julia Boes wrote: > This change corrects the server configuration in `testBindAllInterfaces` to > specify the port. Additionally, a manual test is added for the case where the > port is not specified and the server uses the default port 8000, wh

Re: RFR: 8277016: Use blessed modifier order in httpserver

2021-11-12 Thread Julia Boes
On Thu, 11 Nov 2021 14:58:45 GMT, Magnus Ihse Bursie wrote: > I ran bin/blessed-modifier-order.sh on source in jdk.httpserver. This scripts > verifies that modifiers are in the "blessed" order, and fixes it otherwise. I > have manually checked the changes made by the script to make sure they

Re: RFR: 8276848: sun.net.httpserver.simpleserver.CommandLinePositiveTest: test does not specify port [v2]

2021-11-12 Thread Julia Boes
st. To avoid this scenario and the resulting > BindException, the test is made manual. > > Testing: Tier 1-3 Julia Boes has updated the pull request incrementally with one additional commit since the last revision: add jtreg bug id - Changes: - all: https://git.openjdk.java.ne

Re: RFR: 8276848: sun.net.httpserver.simpleserver.CommandLinePositiveTest: test does not specify port

2021-11-12 Thread Julia Boes
On Fri, 12 Nov 2021 04:30:31 GMT, Jaikiran Pai wrote: > Is it intentional that this new manual test and the existing tests in > "simpleserver" don't have a `@bug` id noted on their test definition? I don't think the `@bug` tag is necessary for tests that are added as part of a JEP, but I

RFR: 8276848: sun.net.httpserver.simpleserver.CommandLinePositiveTest: test does not specify port

2021-11-11 Thread Julia Boes
This change corrects the server configuration in `testBindAllInterfaces` to specify the port. Additionally, a manual test is added for the case where the port is not specified and the server uses the default port 8000, which might already be in use by another test. To avoid this scenario and

Integrated: 8275534: com.sun.net.httpserver.BasicAuthenticator should check whether "realm" is a quoted string

2021-11-04 Thread Julia Boes
On Tue, 26 Oct 2021 12:46:31 GMT, Julia Boes wrote: > This change ensures that the realm string passed to the BasicAuthenticator > constructor is a quoted-string, as per RFC7230 [1]. A Utils class is added to > jdk.httpserver/sun.net.httpserver that holds the new isQuotedString

Re: RFR: 8275534: com.sun.net.httpserver.BasicAuthenticator should check whether "realm" is a quoted string [v2]

2021-11-01 Thread Julia Boes
Testing: tier 1-3. > > [1] https://datatracker.ietf.org/doc/html/rfc7230 Julia Boes has updated the pull request incrementally with one additional commit since the last revision: address PR comments * change method name to isQuotedStringContent * update api note and throws declaration

Re: RFR: 8275534: com.sun.net.httpserver.BasicAuthenticator should check whether "realm" is a quoted string

2021-10-29 Thread Julia Boes
On Tue, 26 Oct 2021 13:56:25 GMT, Daniel Fuchs wrote: >> This change ensures that the realm string passed to the BasicAuthenticator >> constructor is a quoted-string, as per RFC7230 [1]. A Utils class is added >> to jdk.httpserver/sun.net.httpserver that holds the new isQuotedString() >>

RFR: 8275534: com.sun.net.httpserver.BasicAuthenticator should check whether "realm" is a quoted string

2021-10-26 Thread Julia Boes
This change ensures that the realm string passed to the BasicAuthenticator constructor is a quoted-string, as per RFC7230 [1]. A Utils class is added to jdk.httpserver/sun.net.httpserver that holds the new isQuotedString() method and the pre-existing isValidName() method (previously in

Integrated: 8245095: Implementation of JEP 408: Simple Web Server

2021-10-19 Thread Julia Boes
On Tue, 14 Sep 2021 08:52:37 GMT, Julia Boes wrote: > This change implements a simple web server that can be run on the > command-line with `java -m jdk.httpserver`. > > This is facilitated by adding an entry point for the `jdk.httpserver` module, > an implementation class wh

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v9]

2021-10-18 Thread Julia Boes
On Mon, 18 Oct 2021 11:38:22 GMT, Michael McMahon wrote: >> Julia Boes has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 24 commits: >> >> - Minor rewording of bind address output >> - Merge bra

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v9]

2021-10-12 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 24 commits: - Minor rewording of bind address output - Mer

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v8]

2021-09-29 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: update output for all interfaces - Changes: - all: htt

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-29 Thread Julia Boes
On Tue, 28 Sep 2021 10:30:21 GMT, Bernd Eckenfels wrote: > * For all interfaces use "-b 0.0.0.0" (IPv4) or "-b ::" (IPv6) > > Instead of: > > * For 0.0.0.0 (all interfaces) use -b 0.0.0.0 or -b ::0 > > In the usage? > > (I think ?::? is canon?) Good point, "::" is recommended, e.g. in

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v7]

2021-09-28 Thread Julia Boes
On Tue, 28 Sep 2021 10:08:29 GMT, Julia Boes wrote: >> This change implements a simple web server that can be run on the >> command-line with `java -m jdk.httpserver`. >> >> This is facilitated by adding an entry point for the `jdk.httpserver` >> module, an i

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v7]

2021-09-28 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 20 commits: - use ipv4/ipv6 specific loopback address and add a

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v3]

2021-09-22 Thread Julia Boes
On Fri, 17 Sep 2021 14:11:38 GMT, Julia Boes wrote: > Thanks for sharing your experience on this, it's appreciated. 0.0.0.0 is > common default for Apache httpd [1], Ngnix [2], the Python web server [3]. > This being said, I want to make sure we're taking the right decision here so

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v6]

2021-09-22 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request incrementally with two additional commits since the last revision: - change default bind address from anylocal to loopback - address PR com

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v5]

2021-09-22 Thread Julia Boes
On Tue, 21 Sep 2021 17:16:08 GMT, Michael McMahon wrote: >> Julia Boes has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 16 commits: >> >> - Merge branch 'master' into simpleserver >> - Merge

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v5]

2021-09-22 Thread Julia Boes
On Tue, 21 Sep 2021 16:04:21 GMT, Daniel Fuchs wrote: >> Julia Boes has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 16 commits: >> >> - Merge branch 'master' into simpleserver >> - Merge

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v5]

2021-09-22 Thread Julia Boes
On Tue, 21 Sep 2021 15:23:33 GMT, Michael McMahon wrote: >> Julia Boes has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 16 commits: >> >> - Merge branch 'master' into simpleserver >> - Merge

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v5]

2021-09-21 Thread Julia Boes
On Tue, 21 Sep 2021 16:18:54 GMT, Daniel Fuchs wrote: >> The problem I was referring to was not about printing to the console. I >> hadn't thought about that, I agree the default locale should be used there. >> I was referring to `Last-modified` HTTP headers with a non-English date >> value,

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v4]

2021-09-21 Thread Julia Boes
On Mon, 20 Sep 2021 16:16:10 GMT, Daniel Fuchs wrote: >> src/jdk.httpserver/share/classes/sun/net/httpserver/simpleserver/FileServerHandler.java >> line 340: >> >>> 338: } >>> 339: } >>> 340: return false; >> >> This will start checking from the root of

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v5]

2021-09-21 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 16 commits: - Merge branch 'master' into simpleserver - Merg

Integrated: 8273655: content-types.properties files are missing some common types

2021-09-21 Thread Julia Boes
On Tue, 14 Sep 2021 09:46:21 GMT, Julia Boes wrote: > This change adds some common types to the content-type.properties files, > notably .js, .css, and .jar, as well as some others. > > The duplicated entry for .zip is removed from the Windows properties file. This pull request

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v4]

2021-09-20 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 12 commits: - Merge branch 'master' into simpleserver - check

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v3]

2021-09-17 Thread Julia Boes
On Thu, 16 Sep 2021 10:14:47 GMT, Julia Boes wrote: >> This change implements a simple web server that can be run on the >> command-line with `java -m jdk.httpserver`. >> >> This is facilitated by adding an entry point for the `jdk.httpserver` >> module, an i

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v3]

2021-09-17 Thread Julia Boes
On Thu, 16 Sep 2021 10:14:47 GMT, Julia Boes wrote: >> This change implements a simple web server that can be run on the >> command-line with `java -m jdk.httpserver`. >> >> This is facilitated by adding an entry point for the `jdk.httpserver` >> module, an i

Re: RFR: 8273655: content-types.properties files are missing some common types [v2]

2021-09-17 Thread Julia Boes
On Thu, 16 Sep 2021 18:06:53 GMT, Phil Race wrote: > I don't understand why these files are platform-specific. > And if each platform port does need one, where is the one for macOS ? I'm not an expert in the area, it's probably down to historic reasons? The Unix version would be for all Unix

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v3]

2021-09-17 Thread Julia Boes
On Thu, 16 Sep 2021 14:05:52 GMT, Jaikiran Pai wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> correct path handling > > src/jdk.httpserver/share/classes/modu

Re: RFR: 8273655: content-types.properties files are missing some common types [v2]

2021-09-16 Thread Julia Boes
On Thu, 16 Sep 2021 15:28:36 GMT, Julia Boes wrote: >> This change adds some common types to the content-type.properties files, >> notably .js, .css, and .jar, as well as some others. >> >> The duplicated entry for .zip is removed from the Windows properties file. &g

Re: RFR: 8273655: content-types.properties files are missing some common types [v2]

2021-09-16 Thread Julia Boes
> This change adds some common types to the content-type.properties files, > notably .js, .css, and .jar, as well as some others. > > The duplicated entry for .zip is removed from the Windows properties file. Julia Boes has updated the pull request incrementally with one additi

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v3]

2021-09-16 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: correct path handling - Changes: - all: https://git.openjd

Re: RFR: 8273655: content-types.properties files are missing some common types

2021-09-15 Thread Julia Boes
On Tue, 14 Sep 2021 09:46:21 GMT, Julia Boes wrote: > This change adds some common types to the content-type.properties files, > notably .js, .css, and .jar, as well as some others. > > The duplicated entry for .zip is removed from the Windows properties file. > _Mailing li

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v2]

2021-09-15 Thread Julia Boes
On Wed, 15 Sep 2021 03:14:04 GMT, Jaikiran Pai wrote: >> FWIW `.z` is the extension of the old Unix `compress` program. > >> FWIW `.z` is the extension of the old Unix `compress` program. > > Thank you Florent, I wasn't aware of that. related PR for reference:

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server [v2]

2021-09-15 Thread Julia Boes
itionally, a small API is introduced for programmatic creation and > customization. > > Testing: tier1-3. Julia Boes has updated the pull request incrementally with three additional commits since the last revision: - small spec rewording - add module main class to symbolgen

RFR: 8273655: content-types.properties files are missing some common types

2021-09-15 Thread Julia Boes
This change adds some common types to the content-type.properties files, notably .js, .css, and .jar, as well as some others. The duplicated entry for .zip is removed from the Windows properties file. - Commit messages: - add basic test - initial change Changes:

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-15 Thread Julia Boes
On Tue, 14 Sep 2021 15:56:28 GMT, Jim Laskey wrote: >> This change implements a simple web server that can be run on the >> command-line with `java -m jdk.httpserver`. >> >> This is facilitated by adding an entry point for the `jdk.httpserver` >> module, an implementation class whose main

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-15 Thread Julia Boes
On Wed, 15 Sep 2021 07:49:38 GMT, Michael McMahon wrote: >> Or maybe - which would be more accurate: >> >> >> with the given {@code statusCode} and the body bytes' length (or {@code -1} >> if the body is empty). > > I agree with your second suggestion. It's better not to refer to the >

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-15 Thread Julia Boes
On Tue, 14 Sep 2021 16:45:08 GMT, Daniel Fuchs wrote: >> Just a rewording, maybe. > > Hmm... Maye that should be "The response headers *are sent*". The non-obvious > technical details is that the response headers are sent before the body - as > soon as you call `sendResponseHeaders`. The link

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-15 Thread Julia Boes
On Tue, 14 Sep 2021 13:38:27 GMT, Daniel Fuchs wrote: >> src/jdk.httpserver/share/classes/com/sun/net/httpserver/Headers.java line >> 106: >> >>> 104: var h = headers.entrySet().stream() >>> 105: .collect(Collectors.toUnmodifiableMap( >>> 106:

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-14 Thread Julia Boes
On Tue, 14 Sep 2021 13:47:48 GMT, Andrey Turbanov wrote: >> This change implements a simple web server that can be run on the >> command-line with `java -m jdk.httpserver`. >> >> This is facilitated by adding an entry point for the `jdk.httpserver` >> module, an implementation class whose

Re: RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-14 Thread Julia Boes
On Tue, 14 Sep 2021 15:42:06 GMT, Jaikiran Pai wrote: >> src/java.base/windows/classes/sun/net/www/content-types.properties line 30: >> >>> 28: application/octet-stream: \ >>> 29: description=Generic Binary Stream;\ >>> 30:

RFR: 8245095: Implementation of JEP 408: Simple Web Server

2021-09-14 Thread Julia Boes
This change implements a simple web server that can be run on the command-line with `java -m jdk.httpserver`. This is facilitated by adding an entry point for the `jdk.httpserver` module, an implementation class whose main method is run when the above command is executed. This is the first

Integrated: 8272334: com.sun.net.httpserver.HttpExchange: Improve API doc of getRequestHeaders

2021-08-19 Thread Julia Boes
On Thu, 12 Aug 2021 13:44:23 GMT, Julia Boes wrote: > This is a doc-only fix that improves the wording of the API doc of > `getRequestHeaders()`. The other changes are trivial cleanup. This pull request has now been integrated. Changeset: 1c80f078 Author: Julia Boes URL:

Re: RFR: 8272334: com.sun.net.httpserver.HttpExchange: Improve API doc of getRequestHeaders [v2]

2021-08-17 Thread Julia Boes
> This is a doc-only fix that improves the wording of the API doc of > `getRequestHeaders()`. The other changes are trivial cleanup. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: small fix of tense - Changes:

Re: RFR: 8272334: com.sun.net.httpserver.HttpExchange: Improve API doc of getRequestHeaders

2021-08-17 Thread Julia Boes
On Thu, 12 Aug 2021 13:44:23 GMT, Julia Boes wrote: > This is a doc-only fix that improves the wording of the API doc of > `getRequestHeaders()`. The other changes are trivial cleanup. CSR https://bugs.openjdk.java.net/browse/JDK-8272565 - PR: https://git.openjdk.java.n

RFR: 8272334: com.sun.net.httpserver.HttpExchange: Improve API doc of getRequestHeaders

2021-08-12 Thread Julia Boes
This is a doc-only fix that improves the wording of the API doc of `getRequestHeaders()`. The other changes are trivial cleanup. - Commit messages: - cleanup - Add note on multiple header fields - initial commit Changes: https://git.openjdk.java.net/jdk/pull/5100/files Webrev:

Integrated: 8270903: sun.net.httpserver.HttpConnection: Improve toString

2021-08-05 Thread Julia Boes
On Thu, 29 Jul 2021 10:22:51 GMT, Julia Boes wrote: > This is a minor change that updates > `sun.net.httpserver.HttpConnection::toString` to never return null. > > Testing: tier 1-3 all clear This pull request has now been integrated. Changeset: 685fc3c6 Author: Jul

Re: RFR: 8270903: sun.net.httpserver.HttpConnection: Improve toString

2021-08-05 Thread Julia Boes
On Wed, 4 Aug 2021 15:11:59 GMT, Daniel Fuchs wrote: >> Have a marginal preference for HttpConnection.class.getSimpleName(), since >> it is a constant, but don't object to getClass(). > > Right - but then why not use a string literal? If you're going to call a > method to get the class name

Re: RFR: 8271396: Spelling errors

2021-07-29 Thread Julia Boes
On Wed, 28 Jul 2021 17:23:51 GMT, Emmanuel Bourg wrote: >> @ebourg for future PRs please do not force push after the PR is out for >> review. Just push incremental commits normally. The Skara tooling will >> squash them all into a single commit. > > @kevinrushforth I'll do that, thank you for

RFR: 8270903: sun.net.httpserver.HttpConnection: Improve toString

2021-07-29 Thread Julia Boes
This is a minor change that updates `sun.net.httpserver.HttpConnection::toString` to never return null. - Commit messages: - initial commit Changes: https://git.openjdk.java.net/jdk/pull/4928/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=4928=00 Issue:

Integrated: 8270286: com.sun.net.httpserver.spi.HttpServerProvider: remove use of deprecated API

2021-07-22 Thread Julia Boes
On Thu, 15 Jul 2021 09:24:17 GMT, Julia Boes wrote: > This is a cleanup fix that replaces the deprecated method > `Class::newInstance()` with `cls.getDeclaredConstructor().newInstance()` when > loading the provider. This pull request has now been integrated. Changeset: 50bb73

RFR: 8270286: com.sun.net.httpserver.spi.HttpServerProvider: remove use of deprecated API

2021-07-15 Thread Julia Boes
This is a cleanup fix that replaces the deprecated method `Class::newInstance()` with `cls.getDeclaredConstructor().newInstance()` when loading the provider. - Commit messages: - initial commit Changes: https://git.openjdk.java.net/jdk/pull/4789/files Webrev:

Integrated: 8269692: sun.net.httpserver.ServerImpl::createContext should throw IAE

2021-07-06 Thread Julia Boes
On Fri, 2 Jul 2021 11:56:04 GMT, Julia Boes wrote: > `com.sun.net.httpserver.HttpServer::createContext` specifies > `IllegalArgumentException` to be thrown if a context already exists for the > path provided. The implementation class`sun.net.httpserver.ServerImpl` does >

RFR: 8269692: sun.net.httpserver.ServerImpl::createContext should throw IAE

2021-07-02 Thread Julia Boes
`com.sun.net.httpserver.HttpServer::createContext` specifies `IllegalArgumentException` to be thrown if a context already exists for the path provided. The implementation class`sun.net.httpserver.ServerImpl` does not comply with this, which is fixed by this change. Testing: Tier 1-3 all clear.

Re: RFR: 8269692: sun.net.httpserver.ServerImpl::createContext should throw IAE

2021-07-02 Thread Julia Boes
On Fri, 2 Jul 2021 11:56:04 GMT, Julia Boes wrote: > `com.sun.net.httpserver.HttpServer::createContext` specifies > `IllegalArgumentException` to be thrown if a context already exists for the > path provided. The implementation class`sun.net.httpserver.ServerImpl` does >

Integrated: 8268960: com/sun/net/httpserver/Headers.java: Ensure mutators normalize keys and disallow null for keys and values

2021-07-01 Thread Julia Boes
On Fri, 18 Jun 2021 10:43:06 GMT, Julia Boes wrote: > `com.sun.net.httpserver.Headers` normalizes its keys to adhere to the > following format: First character uppercase, all other characters lowercase, > for example `"foo" -> "Foo"`. This behaviour is not

Re: RFR: 8268960: com/sun/net/httpserver/Headers.java: Ensure mutators normalize keys and disallow null for keys and values [v4]

2021-06-25 Thread Julia Boes
ype check and add a `toString()` > implementation. > > Additionally, the Headers class is updated to disallow null values for keys > and values. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: revert equals, update toStri

Re: RFR: 8268960: com/sun/net/httpserver/Headers.java: Ensure mutators normalize keys and disallow null for keys and values [v3]

2021-06-25 Thread Julia Boes
On Thu, 24 Jun 2021 15:15:07 GMT, Daniel Fuchs wrote: >> Julia Boes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> confirm HttpExchange::sendResponseHeaders fails if key/value null > > src/jdk.httpse

Re: RFR: 8268960: com/sun/net/httpserver/Headers.java: Ensure mutators normalize keys and disallow null for keys and values [v3]

2021-06-23 Thread Julia Boes
ype check and add a `toString()` > implementation. > > Additionally, the Headers class is updated to disallow null values for keys > and values. Julia Boes has updated the pull request incrementally with one additional commit since the last revision: confirm HttpExchange::sendR

Re: RFR: 8268960: com/sun/net/httpserver/Headers.java: Ensure mutators normalize keys and disallow null for keys and values [v2]

2021-06-21 Thread Julia Boes
ype check and add a `toString()` > implementation. > > Additionally, the Headers class is updated to disallow null values for keys > and values. Julia Boes has updated the pull request incrementally with two additional commits since the last revision: - disallow

RFR: 8268960: com/sun/net/httpserver/Headers.java: Ensure all mutator methods normalize keys

2021-06-18 Thread Julia Boes
`com.sun.net.httpserver.Headers` normalizes its keys to adhere to the following format: First character uppercase, all other characters lowercase, for example `"foo" -> "Foo"`. This behaviour is not consistent across the mutator methods of the class, in particular `putAll()` and `replaceAll()`

  1   2   3   >