RFR 8005068: HttpCookie does not correctly handle negative maxAge values

Svetlana Nikandrova svetlana.nikandrova at oracle.com
Wed Aug 24 12:18:06 UTC 2016


Reminder.

It's a little change and won't take much time to look into.

Thanks,
Svetlana

On 22.08.2016 20:33, Svetlana Nikandrova wrote:
> Kindly reminder
>
> On 19.08.2016 16:30, Svetlana Nikandrova wrote:
>> Hello,
>>
>> please review this fix. Javadoc for HttpCookie setMaxAge states that 
>> " A negative value means that cookie is not stored persistently" and 
>> "max age is unspecified", but hasExpired only checks for "-1" as 
>> possible negative value. Also changed max age for parsed cookies with 
>> "expires" date in the past from negative delta seconds to 0 as 
>> negative value should be treated as "non specified" (but not expired).
>>
>> JBS:
>> https://bugs.openjdk.java.net/browse/JDK-8005068
>> Webrev:
>> http://cr.openjdk.java.net/~snikandrova/8005068/webrev.00/ 
>> <http://cr.openjdk.java.net/%7Esnikandrova/8005068/webrev.00/>
>>
>> Thank you,
>> Svetlana
>>
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20160824/fde42769/attachment.html>


More information about the net-dev mailing list