DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37204>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37204 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2005-10-23 15:23 ------- In fact the Netscape draft cookie spec throws a MalformedCookieException if the expiry date does not have a time zone set. No changes to the cookie spec are required. I submitted an additional test case to ensure that cookies with a missing time zone attribute get rejected by the Netscape draft cookie spec: + /** + * Tests Netscape specific expire attribute without a time zone. + */ + public void testNetscapeCookieExpireAttributeNoTimeZone() throws Exception { + CookieSpec cookiespec = new NetscapeDraftSpec(); + Header header = new Header("Set-Cookie", + "name=value; expires=Thu, 01-Jan-2006 00:00:00 "); + try { + cookiespec.parse("myhost.mydomain.com", 80, "/", false, header ); + fail("MalformedCookieException should have been thrown"); + } catch (MalformedCookieException ex) { + // expected + } + } + Oleg -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
