Bug 15237 - If cookie data contains "expires=", cookie is not saved
Summary: If cookie data contains "expires=", cookie is not saved
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://bdash.net.nz/cgi-bin/cookie-wi...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-09-18 21:37 PDT by Nir Soffer
Modified: 2007-09-18 22:12 PDT (History)
0 users

See Also:


Attachments
Example CGI script (402 bytes, text/plain)
2007-09-18 21:39 PDT, Nir Soffer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nir Soffer 2007-09-18 21:37:20 PDT
Examples cookies headers that are not saved by Safari/Webkit on 10.4.8:

    Set-Cookie: ..test1="expires="; expires=Sep 15, 2017 04:55:07; Path=/;
    Set-Cookie: ..test2="_expires="; expires=Sep 15, 2017 04:55:07; Path=/;

This cookie is saved:

    Set-Cookie: ..test3="expires"; expires=Sep 15, 2017 04:55:07; Path=/;

Expected: all 3 cookies should be saved.

Attached example CGI script that show the problem. 

Reproducing:
 1. Install the attached CGI
 2. Access it
 3. Open Safari > Preferences > Security > Show Cookies

Only the cookie "..test3" is saved.
Comment 1 Nir Soffer 2007-09-18 21:39:44 PDT
Created attachment 16319 [details]
Example CGI script
Comment 2 Mark Rowe (bdash) 2007-09-18 22:05:17 PDT
I've put the CGI at the location showin in the URL field.

This looks to be a bug in the cookie handling at the Foundation level, outside of WebKit, as I can reproduce the failure to set the cookie on Mac OS X 10.4.10.  I'm going to go ahead and mark this bug as INVALID and move this bug over to Radar so that it can be handled by the appropriate component.
Comment 3 Mark Rowe (bdash) 2007-09-18 22:12:03 PDT
<rdar://problem/5491062>