Commit graph

118 commits

Author SHA1 Message Date
Daniel Jeliński
b6ffb442ac 8335135: HttpURLConnection#HttpInputStream does not throw IOException when response is truncated
Reviewed-by: dfuchs
2024-06-27 15:14:36 +00:00
Christoph Langer
e818ab60a0 8330815: Use pattern matching for instanceof in KeepAliveCache
Reviewed-by: jpai, djelinski
2024-04-25 06:53:36 +00:00
Jonathan Gibbons
9cc163a999 8330178: Clean up non-standard use of /** comments in java.base
Reviewed-by: darcy, iris, dfuchs, aivanov, naoto
2024-04-23 18:43:36 +00:00
Eirik Bjørsnøs
b9c3dc3b47 8327738: Remove unused internal method sun.n.w.p.h.HttpURLConnection.setDefaultAuthenticator
Reviewed-by: djelinski, dfuchs
2024-03-12 17:38:59 +00:00
Korov
e85265abc2 8325361: Make sun.net.www.MessageHeader final
Reviewed-by: dfuchs
2024-03-01 10:58:59 +00:00
Joe Darcy
fbd15b2087 8325189: Enable this-escape javac warning in java.base
Reviewed-by: alanb, erikj, naoto, smarks, ihse, joehw, lancea, weijun
2024-02-07 20:05:11 +00:00
Jaikiran Pai
9d1a6d1484 8323645: Remove unused internal sun.net.www.protocol.jar.URLJarFileCallBack interface
Reviewed-by: alanb, dfuchs
2024-01-25 09:35:35 +00:00
Michael McMahon
f1a24f6d48 8318599: HttpURLConnection cache issues leading to crashes in JGSS w/ native GSS introduced by 8303809
Reviewed-by: dfuchs
2023-11-27 22:43:48 +00:00
Oliver Lockwood
aac4318431 8320577: Improve MessageHeader's toString() function to make HttpURLConnection's debug log readable
Reviewed-by: dfuchs, jpai
2023-11-22 18:25:44 +00:00
Vyom Tewari
460ebcd9cb 8314978: Multiple server call from connection failing with expect100 in getOutputStream
Reviewed-by: dfuchs
2023-10-08 05:13:00 +00:00
Andrey Turbanov
a8ab3be371 8314261: Make fields final in sun.net.www
Reviewed-by: redestad, jpai, dfuchs
2023-08-17 17:54:02 +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
Darragh Clarke
05e99db466 7065228: To interpret case-insensitive string locale independently
Reviewed-by: dfuchs, naoto, djelinski, jpai, michaelm
2023-05-22 10:53:59 +00:00
Darragh Clarke
4b02956d42 8054022: HttpURLConnection timeouts with Expect: 100-Continue and no chunking
Reviewed-by: djelinski, dfuchs
2023-05-08 14:33:44 +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
Michael McMahon
ec119716e5 8296676: Improve String platform support
Reviewed-by: aefimov, dfuchs
2023-04-18 23:21:20 +00:00
Alexey Bakhtin
10f1674625 8303809: Dispose context in SPNEGO NegotiatorImpl
Reviewed-by: dfuchs, weijun
2023-03-14 16:41:09 +00:00
Daniel Jeliński
a2c5a4ac9e 8302732: sun/net/www/http/HttpClient/MultiThreadTest.java still failing intermittently
Reviewed-by: dfuchs
2023-02-27 07:52:03 +00:00
Andrey Turbanov
3a9f491caa 8301964: Expensive fillInStackTrace operation in HttpURLConnection.getLastModified when no last-modified in response
Reviewed-by: dfuchs, jpai, alanb
2023-02-25 13:39:36 +00:00
Daniel Jeliński
27bbe7be2c 8297976: Remove sun.net.ProgressMonitor and related classes
8240275: Occasional errors in HttpURLConnection due to race with GC

Reviewed-by: jpai, dfuchs, michaelm
2022-12-07 08:56:10 +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
Jaikiran Pai
392ac7055d 8297211: Expensive fillInStackTrace operation in HttpURLConnection.getOutputStream0 when no content-length in response
Reviewed-by: simonis, dfuchs
2022-11-22 01:48:39 +00:00
Daniel Fuchs
4338f527aa 8294241: Deprecate URL public constructors
Reviewed-by: joehw, prr, alanb, aefimov, michaelm
2022-11-03 17:18:14 +00:00
Daniel Fuchs
bd41428a56 8293590: Some syntax checks performed by URL.openConnection() could be performed earlier, at URL construction
Reviewed-by: jpai, michaelm
2022-10-18 14:30:51 +00:00
Michael McMahon
26ac836636 8291638: Keep-Alive timeout of 0 should close connection immediately
Reviewed-by: dfuchs, jpai
2022-10-13 08:32:48 +00:00
KIRIYAMA Takuya
4435d56d3f 8282395: URL.openConnection can throw IOOBE
Reviewed-by: dfuchs
2022-10-11 09:22:33 +00:00
Daniel Jeliński
03f25a9c69 8293562: blocked threads with KeepAliveCache.get
Reviewed-by: dfuchs, michaelm
2022-10-03 06:32:31 +00:00
Jaikiran Pai
8bd79d3efd 8170305: URLConnection doesn't handle HTTP/1.1 1xx (informational) messages
Reviewed-by: dfuchs, michaelm
2022-09-13 05:08:05 +00:00
Sergey Tsypanov
9a65524e2f 8290300: Use standard String-joining tools where applicable
Reviewed-by: naoto, rriggs, dfuchs
2022-08-21 17:22:10 +00:00
Michael McMahon
b17a745d7f 8291637: HttpClient default keep alive timeout not followed if server sends invalid value
Reviewed-by: jpai, dfuchs
2022-08-05 14:51:58 +00:00
Andrey Turbanov
62f22633d1 8290861: Remove unused field URLJarFile.BUF_SIZE
Reviewed-by: jpai, djelinski, aefimov
2022-07-22 15:55:58 +00:00
Jaikiran Pai
50c37f53f2 8276798: HttpURLConnection sends invalid HTTP request
Reviewed-by: dfuchs, michaelm
2022-06-22 14:45:52 +00:00
Andrey Turbanov
ce5024f66f 8288468: Avoid redundant HashMap.get call in NegotiateAuthentication.firstToken
Reviewed-by: dfuchs, jpai
2022-06-16 16:03:05 +00:00
XenoAmess
e01cd7c3ed 8284780: Need methods to create pre-sized HashSet and LinkedHashSet
Reviewed-by: naoto, bpb, dfuchs, ascarpino
2022-06-09 01:50:54 +00:00
Andrey Turbanov
4caf1ef389 8287390: Cleanup Map usage in AuthenticationInfo.requestAuthentication
Reviewed-by: dfuchs, jpai
2022-06-01 18:15:59 +00:00
Brian Burkhalter
8071b2311c 8287237: (fs) Files.probeContentType returns null if filename contains hash mark on Linux
Reviewed-by: rriggs, jpai, vtewari
2022-06-01 15:15:53 +00:00
Alan Bateman
9583e3657e 8284161: Implementation of Virtual Threads (Preview)
Co-authored-by: Ron Pressler <rpressler@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Co-authored-by: Rickard Bäckman <rbackman@openjdk.org>
Co-authored-by: Markus Grönlund <mgronlun@openjdk.org>
Co-authored-by: Leonid Mesnik <lmesnik@openjdk.org>
Co-authored-by: Serguei Spitsyn <sspitsyn@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Co-authored-by: Coleen Phillimore <coleenp@openjdk.org>
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org>
Reviewed-by: lancea, eosterlund, rehn, sspitsyn, stefank, tschatzl, dfuchs, lmesnik, dcubed, kevinw, amenkov, dlong, mchung, psandoz, bpb, coleenp, smarks, egahlin, mseledtsov, coffeys, darcy
2022-05-07 08:06:16 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Andrey Turbanov
f4edb59a6e 8284567: Collapse identical catch branches in java.base
Reviewed-by: darcy, iris, wetmore
2022-04-11 09:32:24 +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
Sibabrata Sahoo
86015e15a5 8282293: Domain value for system property jdk.https.negotiate.cbt should be case-insensitive
Reviewed-by: weijun, rhalade
2022-03-23 06:45:37 +00:00
Jaikiran Pai
974ef5542f 8282617: sun.net.www.protocol.https.HttpsClient#putInKeepAliveCache() doesn't use a lock while dealing with "inCache" field
Reviewed-by: dfuchs, michaelm
2022-03-06 08:16:39 +00:00
Michael McMahon
d8f44aa39e 8278067: Make HttpURLConnection default keep alive timeout configurable
Reviewed-by: dfuchs
2022-02-16 16:01:01 +00:00
Michael McMahon
de3113b998 8279842: HTTPS Channel Binding support for Java GSS/Kerberos
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Reviewed-by: dfuchs, weijun, darcy
2022-02-01 07:26:59 +00:00
Andrey Turbanov
c6ed2046b4 8278263: Remove redundant synchronized from URLStreamHandler.openConnection methods
Reviewed-by: dfuchs
2022-01-31 12:11:03 +00:00
Andrey Turbanov
268880b471 8277412: Use String.isBlank to simplify code in sun.net.www.protocol.mailto.Handler
Reviewed-by: dfuchs
2022-01-29 11:36:11 +00:00
stsypanov
f34f8d4d6a 8277983: Remove unused fields from sun.net.www.protocol.jar.JarURLConnection
Reviewed-by: dfuchs
2022-01-26 14:12:51 +00:00
Daniel Jeliński
28796cbd1d 8163921: HttpURLConnection default Accept header is malformed according to HTTP/1.1 RFC
Reviewed-by: dfuchs, michaelm
2022-01-25 11:10:51 +00:00
Sergey Tsypanov
cf977e88ec 8276166: Remove dead code from MimeTable and MimeEntry
Reviewed-by: dfuchs
2022-01-20 09:14:49 +00:00
Andrey Turbanov
9eb50a5ee4 8280010: Remove double buffering of InputStream for Properties.load
Reviewed-by: amenkov, sspitsyn, serb
2022-01-18 15:49:03 +00:00