Sean Mullan
db85090553
8338411: Implement JEP 486: Permanently Disable the Security Manager
...
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Co-authored-by: Aleksei Efimov <aefimov@openjdk.org>
Co-authored-by: Brian Burkhalter <bpb@openjdk.org>
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Co-authored-by: Harshitha Onkar <honkar@openjdk.org>
Co-authored-by: Joe Wang <joehw@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Justin Lu <jlu@openjdk.org>
Co-authored-by: Kevin Walls <kevinw@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Naoto Sato <naoto@openjdk.org>
Co-authored-by: Roger Riggs <rriggs@openjdk.org>
Co-authored-by: Brent Christian <bchristi@openjdk.org>
Co-authored-by: Stuart Marks <smarks@openjdk.org>
Co-authored-by: Ian Graves <igraves@openjdk.org>
Co-authored-by: Phil Race <prr@openjdk.org>
Co-authored-by: Erik Gahlin <egahlin@openjdk.org>
Co-authored-by: Jaikiran Pai <jpai@openjdk.org>
Reviewed-by: kevinw, aivanov, rriggs, lancea, coffeys, dfuchs, ihse, erikj, cjplummer, coleenp, naoto, mchung, prr, weijun, joehw, azvegint, psadhukhan, bchristi, sundar, attila
2024-11-12 17:16:15 +00:00
Justin Lu
2e5b420f81
8340326: Remove references to Applet in core-libs/security tests
...
Reviewed-by: prr, naoto, dfuchs
2024-10-04 17:34:08 +00:00
Darragh Clarke
9538f5d317
8319651: Several network tests ignore vm flags when start java process
...
Reviewed-by: dfuchs, jpai
2024-02-20 16:00:09 +00:00
Jesse Glick
9f98136c3a
6956385: URLConnection.getLastModified() leaks file handles for jar:file and file: URLs
...
Define FileURLConnection.closeInputStream for use by JarURLInputStream.close.
JarURLConnection properly tracks any InputStream it itself opened,
and correspondingly closes the JarFile if necessary (when caches are disabled).
But if its underlying FileURLConnection was used to retrieve a header field,
that would have caused a FileInputStream to be opened
which never gets closed until it is garbage collected.
This means that an application which calls certain methods
on jar:file:/…something.jar!/… URLs will leak file handles,
even if URLConnection caches are supposed to be turned off.
This can delay release of system resources,
and on Windows can prevent the JAR file from being deleted
even after it is no longer in use (for example after URLClassLoader.close).
Reviewed-by: dfuchs, michaelm
2023-06-28 15:33:37 +00:00
Michael McMahon
314db55f6d
8304818: Prune HttpURLConnection cache when corresponding Authenticator is garbage collected
...
Reviewed-by: dfuchs, djelinski
2023-04-24 17:25:32 +00:00
Johnny Lim
5dcaf6cc6c
8297749: Remove duplicate space in the ProtocolException message being thrown from HttpURLConnection
...
Reviewed-by: dfuchs, jpai
2022-11-30 06:15:07 +00:00
Hai-May Chao
5a8e5ea3e2
8286526: Improve NTLM support
...
Reviewed-by: weijun, rhalade
2022-10-18 22:41:15 +00:00
Daniel Jeliński
43dbf5899b
8186765: Speed up test sun/net/www/protocol/https/HttpsClient/ProxyAuthTest.java
...
Reviewed-by: dfuchs, jpai
2022-10-05 06:47:19 +00:00
Alexey Ivanov
e0d361cea9
8284191: Replace usages of 'a the' in hotspot and java.base
...
Reviewed-by: lancea, wetmore, naoto, iris, kevinw, xuelei
2022-05-24 11:25:13 +00:00
Mahendra Chhipa
ec73c61d8f
8284353: Update java/net and sun/net/www tests to eliminate dependency on sun.net.www.MessageHeader
...
Reviewed-by: dfuchs
2022-04-07 10:19:12 +00:00
Michael McMahon
7f2a3ca289
8281561: Disable http DIGEST mechanism with MD5 and SHA-1 by default
...
Reviewed-by: weijun, dfuchs
2022-03-28 13:51:55 +00:00
Mahendra Chhipa
cd9a3cf05b
8282017: sun/net/www/protocol/https/HttpsURLConnection/B6216082.java fails with "SocketException: Unexpected end of file from server"
...
Reviewed-by: dfuchs
2022-02-17 17:45:06 +00:00
Mahendra Chhipa
0f3d3ac32c
8061729: Update java/net tests to eliminate dependency on sun.net.www.MessageHeader and some other internal APIs
...
Reviewed-by: dfuchs
2022-02-16 16:43:15 +00:00
Alex Kasko
3e0d7c33d4
8270290: NTLM authentication fails if HEAD request is used
...
Reviewed-by: dfuchs, michaelm
2021-09-30 15:21:18 +00:00
Mahendra Chhipa
2f955d6f5b
8273142: Remove dependancy of TestHttpServer, HttpTransaction, HttpCallback from open/test/jdk/sun/net/www/protocol/http/ tests
...
Reviewed-by: michaelm
2021-09-30 11:29:20 +00:00
Emmanuel Bourg
d09b028407
8271396: Spelling errors
...
Reviewed-by: tschatzl, chegar, iris, psadhukhan, cjplummer
2021-07-29 16:03:31 +00:00
Mahendra Chhipa
7621fa37ef
8268464: Remove dependancy of TestHttpsServer, HttpTransaction, HttpCallback from open/test/jdk/sun/net/www/protocol/https/ tests
...
Reviewed-by: dfuchs, michaelm
2021-06-23 15:19:10 +00:00
Weijun Wang
640a2afda3
8267184: Add -Djava.security.manager=allow to tests calling System.setSecurityManager
...
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: dholmes, alanb, dfuchs, mchung, mullan, prr
2021-05-24 16:55:55 +00:00
Mahendra Chhipa
5df2a949e3
8212035: merge jdk.test.lib.util.SimpleHttpServer with jaxp.library.SimpleHttpServer
...
Reviewed-by: dfuchs
2021-01-13 15:53:05 +00:00
Roger Riggs
876c7fb5f7
8259493: [test] Use HexFormat instead of adhoc hex utilities in network code and locale SoftKeys
...
Reviewed-by: lancea, naoto
2021-01-08 21:31:37 +00:00
Ivan Sipka
dda0c6cecd
8211974: move test/jdk/lib/testlibrary/java/util/jar/*.java to top-level library or a local library
...
Reviewed-by: rriggs, bchristi, lancea, iignatyev
2020-07-08 20:35:36 +01:00
Michael McMahon
2f80d69518
8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection
...
Reviewed-by: dfuchs
2020-05-22 21:59:40 +01:00
Chris Hegarty
0b881387f2
8231504: Update networking tests to avoid implicit dependency on the system proxies
...
Reviewed-by: dfuchs
2019-09-27 09:55:35 +01:00
Daniel Fuchs
e9eaba3d53
8230858: Replace wildcard address with loopback or local host in tests - part 23
...
Add new traces for better diagnosis, refrain binding to the wildcard address when possible.
Reviewed-by: chegar, xuelei
2019-09-12 15:46:11 +01:00
Daniel Fuchs
f71db3074c
8230435: Replace wildcard address with loopback or local host in tests - part 22
...
Fixes tests to use the loopback address whenever possible. It also fixes some safe publishing issues, or add diagnostics in some of the tests.
Reviewed-by: michaelm
2019-09-04 18:10:07 +01:00
Chris Hegarty
cbfcd9c72e
8225425: java.lang.UnsatisfiedLinkError: net.dll: Can't find dependent libraries
...
Reviewed-by: dfuchs, alanb, erikj
2019-08-19 14:28:43 +01:00
Daniel Fuchs
e81ee784d3
8229481: sun/net/www/protocol/https/ChunkedOutputStream.java failed with a SSLException
...
The test is updated to ignore plain text connections
Reviewed-by: chegar, michaelm
2019-08-16 15:01:58 +01:00
Daniel Fuchs
77d09f0f14
8229486: Replace wildcard address with loopback or local host in tests - part 21
...
Reviewed-by: chegar
2019-08-15 12:58:27 +01:00
Mikael Vidstedt
cfcd0223a9
Merge
2019-07-12 02:50:43 -07:00
Frank Yuan
0518393598
8227422: sun/net/www/protocol/file/DirPermissionDenied.java failed on Windows 2016 because DirPermissionDenied directory has no read permission
...
Reviewed-by: dfuchs
2019-07-12 13:59:22 +08:00
Patrick Concannon
76785af549
8226756: Replace wildcard address with loopback or local host in tests - part 18
...
Reviewed-by: dfuchs
2019-07-10 16:09:20 +01:00
Daniel Fuchs
2ad9f11d77
8226514: Replace wildcard address with loopback or local host in tests - part 14
...
Improve test stabilty by getting rid of the wildcard address whenever possible.
Reviewed-by: chegar, vtewari
2019-06-28 15:58:10 +01:00
Julia Boes
c45f932cc5
8226825: Replace wildcard address with loopback or local host in tests - part 19
...
Replace use of wildcard by the loopback address, or possibly the local host address, wherever possible, to improve test stability.
Reviewed-by: chegar, bpb
2019-06-27 16:12:39 +01:00
Daniel Fuchs
96bb069a2d
8224865: Replace wildcard address with loopback or local host in tests - part 13
...
Fixes intermittent failures observed in some network tests
Reviewed-by: chegar
2019-06-10 11:17:57 +01:00
Daniel Fuchs
5461726dcc
8224761: Replace wildcard address with loopback or local host in tests - part 12
...
Fixes a batch of intermittent failures.
Reviewed-by: chegar, vtewari
2019-05-27 19:24:42 +01:00
Aleksei Efimov
57d319210a
8224035: Replace wildcard address with loopback or local host in tests - part 9
...
Reviewed-by: dfuchs
2019-05-27 13:29:11 +01:00
Daniel Fuchs
ee040e4be2
8224603: Replace wildcard address with loopback or local host in tests - part 11
...
Fixes a batch of tests that were observed failing intermittently.
Reviewed-by: chegar, vtewari
2019-05-24 15:34:14 +01:00
Daniel Fuchs
a974268f17
8224204: Replace wildcard address with loopback or local host in tests - part 10
...
Fixed intermittently failing tests
Reviewed-by: chegar
2019-05-22 13:58:19 +01:00
Daniel Fuchs
cd9e3c1b13
8223856: Replace wildcard address with loopback or local host in tests - part 8
...
Fixes some intermittent test failures by replacing wildcard with loopback - or retrying once.
Reviewed-by: aefimov, chegar
2019-05-20 12:37:40 +01:00
Aleksei Efimov
c9cdfad6ff
8223798: Replace wildcard address with loopback or local host in tests - part 7
...
Reviewed-by: dfuchs, vtewari
2019-05-15 19:47:28 +01:00
Aleksei Efimov
64b8734964
8223638: Replace wildcard address with loopback or local host in tests - part 6
...
Reviewed-by: dfuchs
2019-05-14 13:34:49 +01:00
Aleksei Efimov
6ecf7ffbb1
8223465: Replace wildcard address with loopback or local host in tests - part 3
...
Reviewed-by: dfuchs
2019-05-10 15:34:17 +01:00
Daniel Fuchs
205fd87f2d
8223573: Replace wildcard address with loopback or local host in tests - part 4
...
Makes a few intermittently failing tests more resilient to port reuse issues by ensuring they bind to the loopback address instead of the wildcard.
Reviewed-by: alanb, chegar
2019-05-09 14:23:52 +01:00
Daniel Fuchs
7d4520c109
8223145: Replace wildcard address with loopback or local host in tests - part 1
...
Replaces binding to wildacard with alternative less susceptible to intermittent failure in some intermittently failing tests.
Reviewed-by: chegar, msheppar
2019-05-02 11:55:16 +01:00
Arthur Eubanks
0c2b7c4fc3
8220575: Replace hardcoded 127.0.0.1 in URLs with new URI builder
...
Reviewed-by: dfuchs, chegar
2019-03-27 09:06:43 -07:00
Chris Hegarty
1df787692a
8170705: sun/net/www/protocol/http/StackTraceTest.java fails intermittently with Invalid Http response
...
Reviewed-by: dfuchs
2019-03-19 11:15:08 +00:00
Arthur Eubanks
ef9ce3be1e
8220083: Use InetAddress.getLoopbackAddress() in place of 127.0.0.1 for some tests
...
Tests that hardcode "127.0.0.1" fail in an environment where only IPv6 is available and IPv4 is not.
Reviewed-by: chegar, dfuchs, michaelm
2019-02-27 13:34:40 -08:00
Xue-Lei Andrew Fan
25f0d60a58
8215430: Remove the internal package com.sun.net.ssl
...
Reviewed-by: chegar, mullan, wetmore
2019-03-01 08:35:14 -08:00
Daniel Fuchs
d176e20898
8218133: sun/net/www/protocol/http/ProtocolRedirect.java failed with "java.net.ConnectException"
...
Changed the test to use the loopback interface.
Reviewed-by: chegar
2019-02-01 14:24:40 +00:00
Michael McMahon
0fc677a674
8216986: Remove unused code from SocksSocketImpl
...
Reviewed-by: alanb
2019-01-24 15:48:05 +00:00