Re: RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486

2024-11-15 Thread Daniel Fuchs
> Calls to getSecurityManager, checkPermission, and doPrivileged are removed. > > - URLUtils.getConnectPermission is still used in the client area and couldn't > be removed right away. > [JDK-8344303](https://bugs.openjdk.org/browse/JDK-8344303) has been logged. > > - Similarly, URLConnection.g

Re: RFR: 8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 08:24:45 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes the usages of > `SecurityManager` and calls to `AccessController.doPrivileged()` from the > `sun.net.www.MimeTable` class? > > No new tests have been introduced and existing tests in

Integrated: 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 15:55:57 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes references to > `AccessController.doPriveleged()` and also removes a security check? > > Specifically: > > - The `AccessController.doPriveleged()` has been removed from the > impleme

Re: RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 20:12:13 GMT, Roger Riggs wrote: >> Is that sure? We might have custom handlers there (ContentHandlerFactory is >> a public exported service interface) - some of them might be throwing >> `SecurityException` for reasons of their own. That's why I was >> conservatively keepi

Re: RFR: 8343791: Socket.connect API should document whether the socket will be closed when hostname resolution fails or another error occurs [v2]

2024-11-15 Thread Volkan Yazıcı
> This PR, addressing 8343791, enhances `Socket#connect()` and effectively > makes it close the `Socket` if `SocketImpl#connect()` fails with a > > 1. `SocketTimeoutException` > 2. `InterruptedIOException` in an interrupted vthread > 3. `IOException` that is *not* an `UnknownHostException` > > O

Re: RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 10:31:11 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes calls to > `SecurityManager` and `AccessController.doPrivileged()` from the > `ProxySelector` and `DefaultProxySelector` classes? > > Apart from the trivial removing of those calls, t

Re: RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration [v2]

2024-11-15 Thread Jaikiran Pai
> Can I please get a review of this change which removes calls to > `SecurityManager` and `AccessController.doPrivileged()` from the > `ProxySelector` and `DefaultProxySelector` classes? > > Apart from the trivial removing of those calls, the commit in this PR also > removes the `getProxySelect

Integrated: 8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 08:24:45 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes the usages of > `SecurityManager` and calls to `AccessController.doPrivileged()` from the > `sun.net.www.MimeTable` class? > > No new tests have been introduced and existing tests in

Re: RFR: 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 15:55:57 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes references to > `AccessController.doPriveleged()` and also removes a security check? > > Specifically: > > - The `AccessController.doPriveleged()` has been removed from the > impleme

Re: RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486

2024-11-15 Thread Roger Riggs
On Fri, 15 Nov 2024 19:45:04 GMT, Daniel Fuchs wrote: >> src/java.base/share/classes/java/net/URLConnection.java line 1406: >> >>> 1404: f = iterator.next(); >>> 1405: } catch (ServiceConfigurationError e) { >>> 1406: if (e.getCause() instanceof Securi

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread duke
On Fri, 15 Nov 2024 08:54:38 GMT, Volkan Yazıcı wrote: >> This PR introduces the following changes addressing intermittent >> `PlainProxyConnectionTest` failures reported in >> [JDK-8342811](https://bugs.openjdk.org/browse/JDK-8342811): >> >> * Increase logging verbosity to aid in troubleshoot

Integrated: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5

2024-11-15 Thread Volkan Yazıcı
On Mon, 11 Nov 2024 08:59:03 GMT, Volkan Yazıcı wrote: > This PR introduces the following changes addressing intermittent > `PlainProxyConnectionTest` failures reported in > [JDK-8342811](https://bugs.openjdk.org/browse/JDK-8342811): > > * Increase logging verbosity to aid in troubleshooting (

Re: RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 17:18:46 GMT, Alan Bateman wrote: >> Calls to getSecurityManager, checkPermission, and doPrivileged are removed. >> >> - URLUtils.getConnectPermission is still used in the client area and >> couldn't be removed right away. >> [JDK-8344303](https://bugs.openjdk.org/browse/JD

Integrated: 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 09:00:29 GMT, Eirik Bjørsnøs wrote: > Please review this PR to clean up SM use in `java.net.Authenticator`, > `java.net.CookieHandler`, and `java.net.ResponseCache` after JEP 486 > integration. > > * `Authenticator` is updated to remove calls to SM::checkPermission` > * `Co

Integrated: 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 08:28:44 GMT, Eirik Bjørsnøs wrote: > Please review this JEP486 cleanup PR in the > `s.n.w.p.mailto.MailToURLConnection` and `sun.net.smtp.SmtpClient` classes. > > * The `MailToURLConnection::getPermission` override with the related > `permission` field is removed > * The S

RFR: 8343791: Socket.connect API should document whether the socket will be closed when hostname resolution fails or another error occurs

2024-11-15 Thread Volkan Yazıcı
This PR, addressing 8343791, enhances `Socket#connect()` and effectively makes it close the `Socket` if `SocketImpl#connect()` fails with a 1. `SocketTimeoutException` 2. `InterruptedIOException` in an interrupted vthread 3. `IOException` that is *not* an `UnknownHostException` On the other hand

Re: RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486

2024-11-15 Thread Alan Bateman
On Fri, 15 Nov 2024 16:58:46 GMT, Daniel Fuchs wrote: > Calls to getSecurityManager, checkPermission, and doPrivileged are removed. > > - URLUtils.getConnectPermission is still used in the client area and couldn't > be removed right away. > [JDK-8344303](https://bugs.openjdk.org/browse/JDK-834

Re: RFR: 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 09:00:29 GMT, Eirik Bjørsnøs wrote: > Please review this PR to clean up SM use in `java.net.Authenticator`, > `java.net.CookieHandler`, and `java.net.ResponseCache` after JEP 486 > integration. > > * `Authenticator` is updated to remove calls to SM::checkPermission` > * `Co

RFR: 8344221: Remove calls to SecurityManager and and doPrivileged in java.net.IDN, java.net.URL, java.net.URLConnection, sun.net.util.URLUtil, and java.net.URLStreamHandlerProvider after JEP 486 int

2024-11-15 Thread Daniel Fuchs
Calls to getSecurityManager, checkPermission, and doPrivileged are removed. - URLUtils.getConnectPermission is still used in the client area and couldn't be removed right away. [JDK-8344303](https://bugs.openjdk.org/browse/JDK-8344303) has been logged. - Similarly, URLConnection.getPermission i

Re: RFR: 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 10:31:46 GMT, Daniel Fuchs wrote: > Changes look good. Please run tier2 to validate. tier2 ran to completion with only the `VerifyJimage.java` test failing. So seems okay. - PR Comment: https://git.openjdk.org/jdk/pull/22139#issuecomment-2479463011

Re: RFR: 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration

2024-11-15 Thread Alan Bateman
On Fri, 15 Nov 2024 15:55:57 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes references to > `AccessController.doPriveleged()` and also removes a security check? > > Specifically: > > - The `AccessController.doPriveleged()` has been removed from the > impleme

Re: RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration

2024-11-15 Thread Sean Mullan
On Fri, 15 Nov 2024 11:37:55 GMT, Jaikiran Pai wrote: > > No CSR needed for removing those permissions. There's no visible change to > > the public APIs, and no behavior change that was not already covered by JEP > > 486 CSR, since permissions checks have now become deadcode. Or am I missing >

Re: RFR: 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 15:55:57 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes references to > `AccessController.doPriveleged()` and also removes a security check? > > Specifically: > > - The `AccessController.doPriveleged()` has been removed from the > impleme

Re: RFR: 8344056: Use markdown format for man pages [v4]

2024-11-15 Thread Christian Stein
On Fri, 15 Nov 2024 14:50:21 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

RFR: 8344315: Clean up sun.net.www.protocol.jrt.JavaRuntimeURLConnection after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
Can I please get a review of this change which removes references to `AccessController.doPriveleged()` and also removes a security check? Specifically: - The `AccessController.doPriveleged()` has been removed from the implementation. - The overridden `getPermission()` method has been removed fr

Re: RFR: 8344056: Use markdown format for man pages [v3]

2024-11-15 Thread Magnus Ihse Bursie
On Fri, 15 Nov 2024 15:00:39 GMT, Christian Stein wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix regexes in CheckManPageOptions > > test/langtools/jdk/javadoc/tool/CheckManPageOptions.java line 277: > >

Integrated: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Thu, 14 Nov 2024 20:40:46 GMT, Daniel Fuchs wrote: > Please find here a patch that cleans up the java.net.http module code to > remove permission checks and doPriviliged calls. > This was mostly mechanical. This pull request has now been integrated. Changeset: 40a055eb Author:Daniel Fuc

Re: RFR: 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 08:28:44 GMT, Eirik Bjørsnøs wrote: > Please review this JEP486 cleanup PR in the > `s.n.w.p.mailto.MailToURLConnection` and `sun.net.smtp.SmtpClient` classes. > > * The `MailToURLConnection::getPermission` override with the related > `permission` field is removed > * The S

Re: RFR: 8344056: Use markdown format for man pages [v3]

2024-11-15 Thread Christian Stein
On Fri, 15 Nov 2024 14:46:33 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

Re: RFR: 8344056: Use markdown format for man pages [v4]

2024-11-15 Thread Magnus Ihse Bursie
> Currently, the man pages are stored as troff (a text format) in the open > repo, and a content-wise identical copy is stored as markdown (another text > format) in the closed repo. > > Since markdown is preferred to troff in terms of editing, we make changes to > the man pages in markdown and

Re: RFR: 8344056: Use markdown format for man pages [v2]

2024-11-15 Thread Magnus Ihse Bursie
On Fri, 15 Nov 2024 01:25:43 GMT, David Holmes wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Fix CheckManPageOptions test >> - Remove classpath exception > >> > Now `CheckManPageOptions` finds the `.md`

Re: RFR: 8344056: Use markdown format for man pages [v2]

2024-11-15 Thread Magnus Ihse Bursie
On Thu, 14 Nov 2024 11:11:54 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

Re: RFR: 8344056: Use markdown format for man pages [v3]

2024-11-15 Thread Magnus Ihse Bursie
> Currently, the man pages are stored as troff (a text format) in the open > repo, and a content-wise identical copy is stored as markdown (another text > format) in the closed repo. > > Since markdown is preferred to troff in terms of editing, we make changes to > the man pages in markdown and

Re: RFR: 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 09:58:09 GMT, Daniel Fuchs wrote: > Changes look reasonable. Please run tier2 to validate. Ran `jtreg:test/jdk:tier2` A few network tests like `MulticastSocket` and `InetAddress` failed, probably related to unstable network conditions on my local machine during the test run

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v4]

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 14:07:10 GMT, Daniel Fuchs wrote: >> Please find here a patch that cleans up the java.net.http module code to >> remove permission checks and doPriviliged calls. >> This was mostly mechanical. > > Daniel Fuchs has updated the pull request incrementally with one additional >

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v4]

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 09:10:51 GMT, Daniel Fuchs wrote: >> test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/SimpleSSLContext.java >> line 45: >> >>> 43: * Creates a simple usable SSLContext for SSLSocketFactory >>> 44: * or a HttpsServer using a default keystore in the

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v3]

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 13:15:42 GMT, Jaikiran Pai wrote: >> Daniel Fuchs has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >> commit

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v4]

2024-11-15 Thread Daniel Fuchs
> Please find here a patch that cleans up the java.net.http module code to > remove permission checks and doPriviliged calls. > This was mostly mechanical. Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision: Jaikiran's feedback

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 08:54:38 GMT, Volkan Yazıcı wrote: >> This PR introduces the following changes addressing intermittent >> `PlainProxyConnectionTest` failures reported in >> [JDK-8342811](https://bugs.openjdk.org/browse/JDK-8342811): >> >> * Increase logging verbosity to aid in troubleshoot

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v3]

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 10:25:18 GMT, Daniel Fuchs wrote: >> Please find here a patch that cleans up the java.net.http module code to >> remove permission checks and doPriviliged calls. >> This was mostly mechanical. > > Daniel Fuchs has updated the pull request with a new target base due to a > me

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v3]

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 10:25:18 GMT, Daniel Fuchs wrote: >> Please find here a patch that cleans up the java.net.http module code to >> remove permission checks and doPriviliged calls. >> This was mostly mechanical. > > Daniel Fuchs has updated the pull request with a new target base due to a > me

Integrated: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 07:56:15 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes SM permission checking from > `s.n.w.p.j.JarFileFactory`. > > This removes the permission checking happening in > `JarFileFactory::getCachedJarFile` and also removes the associated private > `getPerm

Re: RFR: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 07:56:15 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes SM permission checking from > `s.n.w.p.j.JarFileFactory`. > > This removes the permission checking happening in > `JarFileFactory::getCachedJarFile` and also removes the associated private > `getPerm

Re: RFR: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 09:50:17 GMT, Daniel Fuchs wrote: > Changes look good, but since this is linked to JarURLConnection it would be > good to run tier1,tier2 to validate. Ran tests `jtreg:test/jdk:tier2`, results look okay: * `VerifyJimage` fail with the same error as in the `FtpClient` PR * `

Re: RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 11:26:50 GMT, Daniel Fuchs wrote: > No CSR needed for removing those permissions. There's no visible change to > the public APIs, and no behavior change that was not already covered by JEP > 486 CSR, since permissions checks have now become deadcode. Or am I missing > somet

Integrated: 8344185: Remove calls to SecurityManager in sun.net.ftp

2024-11-15 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 12:57:25 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes uses of `AccessController::doPrivileged` > in `sun/net/ftp`. > > Changes are mostly straightforward, one exception is the removal of the > somewhat exotic unwrapping of temporary arrays in the static

Re: RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 10:31:11 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes calls to > `SecurityManager` and `AccessController.doPrivileged()` from the > `ProxySelector` and `DefaultProxySelector` classes? > > Apart from the trivial removing of those calls, t

Re: RFR: 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 09:00:29 GMT, Eirik Bjørsnøs wrote: > Please review this PR to clean up SM use in `java.net.Authenticator`, > `java.net.CookieHandler`, and `java.net.ResponseCache` after JEP 486 > integration. > > * `Authenticator` is updated to remove calls to SM::checkPermission` > * `Co

Re: RFR: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
On Fri, 15 Nov 2024 07:56:15 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes SM permission checking from > `s.n.w.p.j.JarFileFactory`. > > This removes the permission checking happening in > `JarFileFactory::getCachedJarFile` and also removes the associated private > `getPerm

RFR: 8344233: Remove calls to SecurityManager and doPrivileged in java.net.ProxySelector and sun.net.spi.DefaultProxySelector after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
Can I please get a review of this change which removes calls to `SecurityManager` and `AccessController.doPrivileged()` from the `ProxySelector` and `DefaultProxySelector` classes? Apart from the trivial removing of those calls, the commit in this PR also removes the `getProxySelector` and `set

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v3]

2024-11-15 Thread Daniel Fuchs
> Please find here a patch that cleans up the java.net.http module code to > remove permission checks and doPriviliged calls. > This was mostly mechanical. Daniel Fuchs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated c

Re: RFR: 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 08:28:44 GMT, Eirik Bjørsnøs wrote: > Please review this JEP486 cleanup PR in the > `s.n.w.p.mailto.MailToURLConnection` and `sun.net.smtp.SmtpClient` classes. > > * The `MailToURLConnection::getPermission` override with the related > `permission` field is removed > * The S

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 08:51:48 GMT, Volkan Yazıcı wrote: >> test/jdk/java/net/httpclient/PlainProxyConnectionTest.java line 60: >> >>> 58: * verifying that the remote address of the HTTP exchange (on >>> the fake proxy server) >>> 59: * is always the same InetSocketAddress. Lo

Re: RFR: 8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 08:24:45 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which removes the usages of > `SecurityManager` and calls to `AccessController.doPrivileged()` from the > `sun.net.www.MimeTable` class? > > No new tests have been introduced and existing tests in

Re: RFR: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Fri, 15 Nov 2024 07:56:15 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes SM permission checking from > `s.n.w.p.j.JarFileFactory`. > > This removes the permission checking happening in > `JarFileFactory::getCachedJarFile` and also removes the associated private > `getPerm

Re: RFR: 8344185: Remove calls to SecurityManager in sun.net.ftp

2024-11-15 Thread Daniel Fuchs
On Thu, 14 Nov 2024 12:57:25 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes uses of `AccessController::doPrivileged` > in `sun/net/ftp`. > > Changes are mostly straightforward, one exception is the removal of the > somewhat exotic unwrapping of temporary arrays in the static

RFR: 8344189: Cleanup code in sun.net.www.protocol.mailto.MailToURLConnection and sun.net.smtp after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
Please review this JEP486 cleanup PR in the `s.n.w.p.mailto.MailToURLConnection` and `sun.net.smtp.SmtpClient` classes. * The `MailToURLConnection::getPermission` override with the related `permission` field is removed * The SM property access check in `MailToURLConnection::getFromAddress` is r

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration [v2]

2024-11-15 Thread Daniel Fuchs
> Please find here a patch that cleans up the java.net.http module code to > remove permission checks and doPriviliged calls. > This was mostly mechanical. Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision: Review feedback

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Thu, 14 Nov 2024 20:53:02 GMT, Michael McMahon wrote: >> Please find here a patch that cleans up the java.net.http module code to >> remove permission checks and doPriviliged calls. >> This was mostly mechanical. > > src/java.net.http/share/classes/jdk/internal/net/http/HttpClientBuilderImpl.

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread Volkan Yazıcı
On Thu, 14 Nov 2024 15:29:32 GMT, Daniel Fuchs wrote: >> Volkan Yazıcı has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove references to the ticket ID > > test/jdk/java/net/httpclient/PlainProxyConnectionTest.java line 56: > >> 54: /

Re: RFR: 8344228: Revisit SecurityManager usage in java.net.http after JEP 486 integration

2024-11-15 Thread Daniel Fuchs
On Thu, 14 Nov 2024 21:17:01 GMT, Michael McMahon wrote: >> Please find here a patch that cleans up the java.net.http module code to >> remove permission checks and doPriviliged calls. >> This was mostly mechanical. > > test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/Si

RFR: 8344216: Remove calls to SecurityManager and and doPrivileged in java.net.Authenticator, java.net.CookieHandler, and java.net.ResponseCache after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
Please review this PR to clean up SM use in `java.net.Authenticator`, `java.net.CookieHandler`, and `java.net.ResponseCache` after JEP 486 integration. * `Authenticator` is updated to remove calls to SM::checkPermission` * `CookieHandler` is updated to remove calls to SM::checkPermission` and re

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v2]

2024-11-15 Thread Volkan Yazıcı
> This PR introduces the following changes addressing intermittent > `PlainProxyConnectionTest` failures reported in > [JDK-8342811](https://bugs.openjdk.org/browse/JDK-8342811): > > * Increase logging verbosity to aid in troubleshooting (if the failure > happens to pop up again) > * Add salt t

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread Volkan Yazıcı
> This PR introduces the following changes addressing intermittent > `PlainProxyConnectionTest` failures reported in > [JDK-8342811](https://bugs.openjdk.org/browse/JDK-8342811): > > * Increase logging verbosity to aid in troubleshooting (if the failure > happens to pop up again) > * Add salt t

Re: RFR: 8342811: java/net/httpclient/PlainProxyConnectionTest.java failed: Unexpected connection count: 5 [v3]

2024-11-15 Thread Volkan Yazıcı
On Thu, 14 Nov 2024 15:30:46 GMT, Daniel Fuchs wrote: >> Volkan Yazıcı has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove references to the ticket ID > > test/jdk/java/net/httpclient/PlainProxyConnectionTest.java line 60: > >> 58:

RFR: 8344186: Cleanup sun.net.www.MimeTable after JEP 486 integration

2024-11-15 Thread Jaikiran Pai
Can I please get a review of this change which removes the usages of `SecurityManager` and calls to `AccessController.doPrivileged()` from the `sun.net.www.MimeTable` class? No new tests have been introduced and existing tests in tier1 and tier2 continue to pass with this change. -

RFR: 8344188: Cleanup sun.net.www.protocol.jar.JarFileFactory after JEP 486 integration

2024-11-15 Thread Eirik Bjørsnøs
Please review this PR which removes SM permission checking from `s.n.w.p.j.JarFileFactory`. This removes the permission checking happening in `JarFileFactory::getCachedJarFile` and also removes the associated private `getPermission` method, (sadly including the cute `// gulp`). The import of `