Commit Graph

29 Commits

Author SHA1 Message Date
Mark Sheppard
92c43dcb6a 8023326: [TESTBUG] java/net/CookieHandler/LocalHostCookie.java misplaced try/finally
Amended test to be more robust to set of potential exceptions thrown

Reviewed-by: chegar, khazra
2013-09-06 15:00:59 +01:00
John Zavgren
0faa9a064f 8015799: HttpURLConnection.getHeaderFields() throws IllegalArgumentException
Reviewed-by: chegar, dsamersoff, khazra
2013-06-28 16:38:09 +01:00
Kurchi Subhra Hazra
eb00b0e4f3 7169142: CookieHandler does not work with localhost
Add .local to derived effective hostnames without dot

Reviewed-by: chegar
2013-06-13 17:48:11 -07:00
Kurchi Subhra Hazra
7153278427 7051862: CookiePolicy spec conflicts with CookiePolicy.ACCEPT_ORIGINAL_SERVER
Return false for null arguments in ACCEPT_ORIGINAL_SERVER#shouldAccept()

Reviewed-by: chegar
2013-06-07 10:59:41 -07:00
John Zavgren
ae11ef7f7f 7188517: Check on '$' character is missing in the HttpCookie class constructor
Modified the constructor code so that the cookie names are examined for leading dollar signs and if they do, an illegal argument exception is thrown.

Reviewed-by: chegar, khazra, michaelm
2013-05-31 15:18:15 -04:00
Kurchi Subhra Hazra
83505983f5 7150552: network test hangs [macosx]
Remove usage of test/sun/net/www/httptest

Reviewed-by: chegar
2013-05-16 10:58:20 -07:00
Rob McKenna
7524cd99c1 8000525: Java.net.httpcookie api does not support 2-digit year format
Reviewed-by: chegar
2012-12-13 15:28:40 +00:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
John Zavgren
8fbd047f8c 6354758: rename old test HttpServer classes
Reviewed-by: chegar, michaelm, khazra
2012-09-07 15:30:17 +01:00
Michael McMahon
94f61c976b 7183292: HttpURLConnection.getHeaderFields() throws IllegalArgumentException: Illegal cookie name
Reviewed-by: khazra, chegar
2012-07-18 18:46:17 +01:00
Kurchi Subhra Hazra
56132c0447 7045655: An empty InMemoryCookieStore should not return true for removeAll
CookieStore.removeAll() should return false for an empty CookieStore

Reviewed-by: chegar
2012-03-15 13:21:16 -07:00
Kurchi Subhra Hazra
ebd4f912d7 6953455: CookieStore.add() cannot handle null URI parameter, contrary to the API
Reviewed-by: chegar, mduigou
2011-10-04 13:48:41 +01:00
Sean Chou
3217c0283e 7023713: HttpCookie.domainMatches("hostname.local", "hostname") should return true
Reviewed-by: chegar
2011-08-22 14:09:28 +01:00
Xue-Lei Andrew Fan
2ee0410a0c 7068662: Reserve and restore the default locale
Reviewed-by: alanb, weijun
2011-07-29 02:50:58 -07:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Chris Hegarty
9b23617373 6935199: java/net regression tests failing with Assertions
Reviewed-by: michaelm
2010-03-16 14:31:57 +00:00
Chris Hegarty
9cf7c0352d 6933629: java/net/HttpURLConnection/HttpResponseCode.java fails if run in samevm mode
Reviewed-by: alanb
2010-03-11 17:37:33 +00:00
Jean-Christophe Collet
4da1e67db3 6901170: HttpCookie parsing of version and max-age mis-handled
Accept single quotes in cookies and better exception handling in CookieManager

Reviewed-by: chegar
2009-11-20 14:50:55 +01:00
Jean-Christophe Collet
48792ee40c 6873543: CookieManager doesn't enforce httpOnly
Adds check for httpOnly tag and clarifies javadoc

Reviewed-by: chegar
2009-10-21 13:42:39 +02:00
Jean-Christophe Collet
97c0be0045 6349566: java.net.CookieManager doesn't set default domain
Enforce default domain in CookieManager

Reviewed-by: michaelm
2009-05-25 22:27:26 +02:00
Jean-Christophe Collet
57a4df4e50 6791927: Wrong Locale in HttpCookie::expiryDate2DeltaSeconds
Force Locale.US when parsing the cookie expiration date.

Reviewed-by: chegar
2009-02-02 16:50:54 +01:00
Jean-Christophe Collet
285d905e09 6790677: java.net.HttpCookie.parse(String) should ignore unrecognized attributes, RFC2965
Changed code not to throw an exception on unknown attributes

Reviewed-by: chegar
2009-01-27 11:36:28 +01:00
Xiomara Jayasena
6e86513c3a 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:32 -07:00
Jean-Christophe Collet
9b311f9a7b 6692802: HttpCookie needs to support HttpOnly attribute
Added HttpOnly tag support to HttpCookie class.

Reviewed-by: chegar, michaelm
2008-09-04 15:26:53 +02:00
Xiomara Jayasena
2617d1d179 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:45 -07:00
Jean-Christophe Collet
2dc88cc9c9 6644726: Cookie management issues
Many changes to accomodate RFC 2965 and old Netscape specs

Reviewed-by: chegar
2008-04-17 11:05:33 +02:00
Jean-Christophe Collet
ffacce2397 6641309: Wrong Cookie separator used in HttpURLConnection
Added a space to cookie separator. Generified the code and added tags.

Reviewed-by: chegar
2008-03-05 11:40:22 +01:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00