Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v6]

2025-04-10 Thread Magnus Ihse Bursie
On Thu, 10 Apr 2025 07:31:37 GMT, Magnus Ihse Bursie wrote: >> Right, that `å` looks to have been incorrectly converted during the >> ISO-8859-1 to UTF-8 conversion. (I can't find the script used for conversion >> as this change is from some time ago.) >> >> Since the change occurs in a commen

Re: RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 12:48:32 GMT, Volkan Yazici wrote: >> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient >> don't fully implement the described requirements. >> >> This PR adds the following validation: >> - pseudo-headers defined for requests are rejected in respo

Re: RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 11:37:23 GMT, Daniel Jeliński wrote: > RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in response

Re: RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Volkan Yazici
On Thu, 10 Apr 2025 11:37:23 GMT, Daniel Jeliński wrote: > RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in response

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2025-04-10 Thread Magnus Ihse Bursie
On Wed, 13 Sep 2023 17:38:28 GMT, Justin Lu wrote: >> JDK .properties files still use ISO-8859-1 encoding with escape sequences. >> It would improve readability to see the native characters instead of escape >> sequences (especially for the L10n process). The majority of files changed >> are l

Re: RFR: 8354276: Strict HTTP header validation [v2]

2025-04-10 Thread Daniel Jeliński
On Thu, 10 Apr 2025 12:59:25 GMT, Daniel Fuchs wrote: >> src/java.net.http/share/classes/jdk/internal/net/http/common/ValidatingHeadersConsumer.java >> line 46: >> >>> 44: REQUEST, >>> 45: RESPONSE, >>> 46: TRAILER >> >> Do we need `TRAILER`, given we don't use it, AFAI

Re: RFR: 8354276: Strict HTTP header validation [v2]

2025-04-10 Thread Daniel Jeliński
On Thu, 10 Apr 2025 12:41:51 GMT, Volkan Yazici wrote: >> Daniel Jeliński has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Remove trailers >> - Add bug id > > test/jdk/java/net/httpclient/http2/BadHeadersTest.java line 30: > >> 28: *

Re: RFR: 8353641: Deprecate core library permission classes for removal [v8]

2025-04-10 Thread Sean Mullan
On Mon, 7 Apr 2025 18:40:35 GMT, Roger Riggs wrote: >> Now that the Security Manager is permanently disabled, the following >> permission classes in the core libraries area can be deprecated for removal >> as they are no longer useful: FilePermission, LinkPermission, >> LoggingPermission, Prop

Re: RFR: 8354276: Strict HTTP header validation [v3]

2025-04-10 Thread Daniel Jeliński
> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in responses and push > streams > - pseudo-headers defined for respon

Re: RFR: 8354276: Strict HTTP header validation [v2]

2025-04-10 Thread Michael McMahon
On Thu, 10 Apr 2025 13:31:40 GMT, Daniel Jeliński wrote: >> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient >> don't fully implement the described requirements. >> >> This PR adds the following validation: >> - pseudo-headers defined for requests are rejected in res

Re: RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Daniel Jeliński
On Thu, 10 Apr 2025 12:45:40 GMT, Volkan Yazici wrote: >> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient >> don't fully implement the described requirements. >> >> This PR adds the following validation: >> - pseudo-headers defined for requests are rejected in respo

Re: RFR: 8350279: HttpClient: Add a new HttpResponse method to identify connections [v12]

2025-04-10 Thread Daniel Fuchs
On Tue, 8 Apr 2025 19:27:17 GMT, Volkan Yazici wrote: >> Adds `HttpResponse::connectionLabel` method that provides an identifier for >> the connection. >> >> **Implementation note:** The feature is facilitated by >> `HttpConnection::label`, which should not be confused with >> `HttpConnection

RFR: 8350807: Certificates using MD5 algorithm that are disabled by default are incorrectly allowed in TLSv1.3 when re-enabled

2025-04-10 Thread Artur Barashev
MD5 algorithm is prohibited by TLSv1.3 RFC to be used in certificates: Any endpoint receiving any certificate which it would need to validate using any signature algorithm using an MD5 hash MUST abort the handshake with a "bad_certificate" alert. The bug manifests itself when older versions of

Re: RFR: 8350279: HttpClient: Add a new HttpResponse method to identify connections [v12]

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 13:52:52 GMT, Daniel Fuchs wrote: >> Volkan Yazici has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add `@implNote` to state that the built-in is always non-empty > > test/jdk/java/net/httpclient/HttpResponseConnection

Re: RFR: 8350279: HttpClient: Add a new HttpResponse method to identify connections [v12]

2025-04-10 Thread Daniel Fuchs
On Tue, 8 Apr 2025 19:27:17 GMT, Volkan Yazici wrote: >> Adds `HttpResponse::connectionLabel` method that provides an identifier for >> the connection. >> >> **Implementation note:** The feature is facilitated by >> `HttpConnection::label`, which should not be confused with >> `HttpConnection

Re: RFR: 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 05:47:09 GMT, Volkan Yazici wrote: > Avoid unnecessary boxing in `HttpHeaders::firstValueAsLong`. Marked as reviewed by dfuchs (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/24561#pullrequestreview-2756129194

Re: RFR: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost" [v4]

2025-04-10 Thread duke
On Thu, 10 Apr 2025 05:52:07 GMT, Volkan Yazici wrote: >> Overhauls `EmptyAuthenticate` to >> >> - Test all supported HTTP versions (i.e., HTTP/1.1 and HTTP/2) >> - Test both clear-text and SSL >> - Use `HttpServerAdapters.HttpTestServer::create` to avoid host-related >> problems > > Volkan Yaz

Integrated: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost"

2025-04-10 Thread Volkan Yazici
On Wed, 9 Apr 2025 11:12:31 GMT, Volkan Yazici wrote: > Overhauls `EmptyAuthenticate` to > > - Test all supported HTTP versions (i.e., HTTP/1.1 and HTTP/2) > - Test both clear-text and SSL > - Use `HttpServerAdapters.HttpTestServer::create` to avoid host-related > problems This pull request ha

Re: RFR: 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long

2025-04-10 Thread Daniel Jeliński
On Thu, 10 Apr 2025 05:47:09 GMT, Volkan Yazici wrote: > Avoid unnecessary boxing in `HttpHeaders::firstValueAsLong`. LGTM. Don't use `noreg-self` for this. That label is used for fixing test issues. `noreg-perf` or `noreg-cleanup` would be more appropriate here. - Marked as revi

RFR: 8354024: [JMH] Create ephemeral UnixDomainSocketAddress provider with thread-safe close semantics

2025-04-10 Thread Volkan Yazici
`ServerUdsChannelHolder` is introduced to manage the life cycle of a `ServerSocketChannel` created using Unix domain sockets (UDS) in a thread-safe manner. ### Testing Changes can be tested as follows: make build-microbenchmark build/linux-x64/jdk/bin/java \ -jar build/linux-x64/images/test

Re: RFR: 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long

2025-04-10 Thread Volkan Yazici
On Thu, 10 Apr 2025 10:49:04 GMT, Daniel Jeliński wrote: >> Avoid unnecessary boxing in `HttpHeaders::firstValueAsLong`. > > LGTM. > > Don't use `noreg-self` for this. That label is used for fixing test issues. > `noreg-perf` or `noreg-cleanup` would be more appropriate here. @djelinski, thank

Re: RFR: 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long

2025-04-10 Thread Michael McMahon
On Thu, 10 Apr 2025 05:47:09 GMT, Volkan Yazici wrote: > Avoid unnecessary boxing in `HttpHeaders::firstValueAsLong`. Marked as reviewed by michaelm (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/24561#pullrequestreview-2756348007

Re: RFR: 8353949: HttpHeaders.firstValueAsLong unnecessarily boxes to Long

2025-04-10 Thread duke
On Thu, 10 Apr 2025 05:47:09 GMT, Volkan Yazici wrote: > Avoid unnecessary boxing in `HttpHeaders::firstValueAsLong`. @vy Your change (at version 4385b04466227cacdc9d58e9f6cd1f55968b0e27) is now ready to be sponsored by a Committer. - PR Comment: https://git.openjdk.org/jdk/pull/

RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Daniel Jeliński
RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient don't fully implement the described requirements. This PR adds the following validation: - pseudo-headers defined for requests are rejected in responses and push streams - pseudo-headers defined for responses are rejecte

Re: RFR: 8285888: Clarify that java.net.http.HttpClient do NOT support Digest authentication [v2]

2025-04-10 Thread Jaikiran Pai
On Thu, 10 Apr 2025 11:23:57 GMT, Michael McMahon wrote: >> Hi, >> >> This is a minor doc change to clarify that java.net.http.HttpClient only >> supports HTTP Basic authentication. >> >> Thanks, >> Michael > > Michael McMahon has updated the pull request incrementally with one > additional c

Re: RFR: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost" [v4]

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 05:52:07 GMT, Volkan Yazici wrote: >> Overhauls `EmptyAuthenticate` to >> >> - Test all supported HTTP versions (i.e., HTTP/1.1 and HTTP/2) >> - Test both clear-text and SSL >> - Use `HttpServerAdapters.HttpTestServer::create` to avoid host-related >> problems > > Volkan Yaz

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v6]

2025-04-10 Thread Eirik Bjørsnøs
On Thu, 10 Apr 2025 07:32:18 GMT, Magnus Ihse Bursie wrote: >> You don't have to do that, I'm working on an omnibus UTF-8 fixing PR right >> now, where I will include a fix for this as well. > > If anything, I might be a bit worried that there are more incorrect > conversions stemming from this

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v6]

2025-04-10 Thread Magnus Ihse Bursie
On Thu, 10 Apr 2025 08:08:02 GMT, Eirik Bjørsnøs wrote: >> If anything, I might be a bit worried that there are more incorrect >> conversions stemming from this PR, that my automated tools and manual >> scanning has not revealed. > > Some observations: > > 1: This PR seems to have been abondo

Re: RFR: 8285888: Clarify that java.net.http.HttpClient do NOT support Digest authentication [v2]

2025-04-10 Thread Daniel Fuchs
On Thu, 10 Apr 2025 11:23:57 GMT, Michael McMahon wrote: >> Hi, >> >> This is a minor doc change to clarify that java.net.http.HttpClient only >> supports HTTP Basic authentication. >> >> Thanks, >> Michael > > Michael McMahon has updated the pull request incrementally with one > additional c

Re: RFR: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost" [v3]

2025-04-10 Thread Daniel Fuchs
On Wed, 9 Apr 2025 14:35:30 GMT, Volkan Yazici wrote: >> Overhauls `EmptyAuthenticate` to >> >> - Test all supported HTTP versions (i.e., HTTP/1.1 and HTTP/2) >> - Test both clear-text and SSL >> - Use `HttpServerAdapters.HttpTestServer::create` to avoid host-related >> problems > > Volkan Yazi

Re: RFR: 8354276: Strict HTTP header validation [v4]

2025-04-10 Thread Daniel Jeliński
> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in responses and push > streams > - pseudo-headers defined for respon

Re: RFR: 8353278: Consolidate local file URL checks in jar: and file: URL schemes [v2]

2025-04-10 Thread Jaikiran Pai
On Mon, 7 Apr 2025 13:22:56 GMT, Eirik Bjørsnøs wrote: >> Please help review this cleanup PR which consolidates 'local file' URL >> checks across the 'file:' and 'jar:' URL scheme implementations and defines >> this check in terms of RFC 8089, Section 2. >> >> This PR: >> >> * Moves `URLJarFi

Re: RFR: 8354276: Strict HTTP header validation [v2]

2025-04-10 Thread Daniel Jeliński
> RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in responses and push > streams > - pseudo-headers defined for respon

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2025-04-10 Thread Magnus Ihse Bursie
On Wed, 13 Sep 2023 17:38:28 GMT, Justin Lu wrote: >> JDK .properties files still use ISO-8859-1 encoding with escape sequences. >> It would improve readability to see the native characters instead of escape >> sequences (especially for the L10n process). The majority of files changed >> are l

Re: RFR: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost" [v2]

2025-04-10 Thread Volkan Yazici
On Wed, 9 Apr 2025 11:35:29 GMT, Jaikiran Pai wrote: >> Volkan Yazici has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Apply review suggestions > > test/jdk/java/net/httpclient/EmptyAuthenticate.java line 74: > >> 72: @MethodSource("

Re: RFR: 8354276: Strict HTTP header validation

2025-04-10 Thread Volkan Yazici
On Thu, 10 Apr 2025 11:37:23 GMT, Daniel Jeliński wrote: > RFC 9113 HTTP/2 mandates certain validation for HTTP headers; the HttpClient > don't fully implement the described requirements. > > This PR adds the following validation: > - pseudo-headers defined for requests are rejected in response

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2025-04-10 Thread Justin Lu
On Thu, 10 Apr 2025 08:44:28 GMT, Eirik Bjørsnøs wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Replace InputStreamReader with BufferedReader > > FWIW, I checked out the revision of the commit previous to this change

Integrated: 8353641: Deprecate core library permission classes for removal

2025-04-10 Thread Roger Riggs
On Fri, 4 Apr 2025 12:37:32 GMT, Roger Riggs wrote: > Now that the Security Manager is permanently disabled, the following > permission classes in the core libraries area can be deprecated for removal > as they are no longer useful: FilePermission, LinkPermission, > LoggingPermission, Property

Integrated: 8285888: Clarify that java.net.http.HttpClient do NOT support Digest authentication

2025-04-10 Thread Michael McMahon
On Wed, 9 Apr 2025 14:08:06 GMT, Michael McMahon wrote: > Hi, > > This is a minor doc change to clarify that java.net.http.HttpClient only > supports HTTP Basic authentication. > > Thanks, > Michael This pull request has now been integrated. Changeset: e35f67b9 Author:Michael McMahon UR

Re: RFR: 8353641: Deprecate core library permission classes for removal [v8]

2025-04-10 Thread Roger Riggs
> Now that the Security Manager is permanently disabled, the following > permission classes in the core libraries area can be deprecated for removal > as they are no longer useful: FilePermission, LinkPermission, > LoggingPermission, PropertyPermission, ReflectPermission, RuntimePermission, > a

RFR: 8352431: java/net/httpclient/EmptyAuthenticate.java uses "localhost"

2025-04-10 Thread Volkan Yazici
Overhauls `EmptyAuthenticate` to - Test all supported HTTP versions (i.e., HTTP/1.1 and HTTP/2) - Test both clear-text and SSL - Use `HttpServerAdapters.HttpTestServer::create` to avoid host-related problems - Commit messages: - Overhaul `EmptyAuthenticate` Changes: https://git.ope

Integrated: 8353847: Remove extra args to System.out.printf in open/test/jdk/java/net/httpclient tests

2025-04-10 Thread serhiysachkov
On Tue, 8 Apr 2025 12:33:52 GMT, serhiysachkov wrote: > Remove extra args to System.out.printf in open/test/jsk/java/net/httpclient > tests This pull request has now been integrated. Changeset: f94a4f7a Author:Serhiy Sachkov Committer: Mahendra Chhipa URL: https://git.openjdk.org/

Re: RFR: 8348986: Improve coverage of enhanced exception messages [v5]

2025-04-10 Thread Michael McMahon
On Thu, 10 Apr 2025 21:26:21 GMT, Michael McMahon wrote: >> Hi, >> >> Enhanced exception messages are designed to hide sensitive information such >> as hostnames, IP >> addresses from exception message strings, unless the enhanced mode for the >> specific category >> has been explicitly enab

Re: RFR: 8249824: s/n/w/p/https/HttpsURLConnection/CloseKeepAliveCached.java uses @ignore w/o bugid [v3]

2025-04-10 Thread Mikhail Yankelevich
On Thu, 6 Feb 2025 15:54:47 GMT, Mikhail Yankelevich wrote: >> * fully automated the test >> * removed the race condition >> * client on a thread and server on a thread options are now run together >> automatically > > Mikhail Yankelevich has updated the pull request incrementally with one > a

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v6]

2025-04-10 Thread Magnus Ihse Bursie
On Wed, 9 Apr 2025 21:26:15 GMT, Justin Lu wrote: >> src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/Encodings.properties >> line 22: >> >>> 20: # Peter Smolik >>> 21: Cp1250 WINDOWS-1250 0x00FF >>> 22: # Patch attributed to hava...@underdusken.no (H�vard Wigtil) >> >> Th

Re: RFR: 8348986: Improve coverage of enhanced exception messages [v4]

2025-04-10 Thread Michael McMahon
> Hi, > > Enhanced exception messages are designed to hide sensitive information such > as hostnames, IP > addresses from exception message strings, unless the enhanced mode for the > specific category > has been explicitly enabled. Enhanced exceptions were first introduced in > 8204233 in JD

Re: RFR: 8285888: Clarify that java.net.http.HttpClient do NOT support Digest authentication [v2]

2025-04-10 Thread Michael McMahon
> Hi, > > This is a minor doc change to clarify that java.net.http.HttpClient only > supports HTTP Basic authentication. > > Thanks, > Michael Michael McMahon has updated the pull request incrementally with one additional commit since the last revision: copyright update - Chan

Re: RFR: 8301991: Convert l10n properties resource bundles to UTF-8 native [v2]

2025-04-10 Thread Eirik Bjørsnøs
On Wed, 13 Sep 2023 17:38:28 GMT, Justin Lu wrote: >> JDK .properties files still use ISO-8859-1 encoding with escape sequences. >> It would improve readability to see the native characters instead of escape >> sequences (especially for the L10n process). The majority of files changed >> are l

Re: RFR: 8348986: Improve coverage of enhanced exception messages [v5]

2025-04-10 Thread Michael McMahon
> Hi, > > Enhanced exception messages are designed to hide sensitive information such > as hostnames, IP > addresses from exception message strings, unless the enhanced mode for the > specific category > has been explicitly enabled. Enhanced exceptions were first introduced in > 8204233 in JD