<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15237</bug_id>
          
          <creation_ts>2007-09-18 21:37:20 -0700</creation_ts>
          <short_desc>If cookie data contains &quot;expires=&quot;, cookie is not saved</short_desc>
          <delta_ts>2007-09-18 22:12:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://bdash.net.nz/cgi-bin/cookie-with-expires-in-data.cgi</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nir Soffer">nirs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>335</commentid>
    <comment_count>0</comment_count>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2007-09-18 21:37:20 -0700</bug_when>
    <thetext>Examples cookies headers that are not saved by Safari/Webkit on 10.4.8:

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

This cookie is saved:

    Set-Cookie: ..test3=&quot;expires&quot;; 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 &gt; Preferences &gt; Security &gt; Show Cookies

Only the cookie &quot;..test3&quot; is saved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>321</commentid>
    <comment_count>1</comment_count>
      <attachid>16319</attachid>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2007-09-18 21:39:44 -0700</bug_when>
    <thetext>Created attachment 16319
Example CGI script</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-18 22:05:17 -0700</bug_when>
    <thetext>I&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-18 22:12:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/5491062&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16319</attachid>
            <date>2007-09-18 21:39:44 -0700</date>
            <delta_ts>2007-09-18 21:39:44 -0700</delta_ts>
            <desc>Example CGI script</desc>
            <filename>expires_bug.py</filename>
            <type>text/plain</type>
            <size>402</size>
            <attacher name="Nir Soffer">nirs</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCgpwcmludCAnY29udGVudC10eXBlOiB0ZXh0L2h0bWwnCnBy
aW50ICdTZXQtQ29va2llOiAuLnRlc3QxPSJleHBpcmVzPSI7IGV4cGlyZXM9U2VwIDE1LCAyMDE3
IDA0OjU1OjA3OyBQYXRoPS87JwpwcmludCAnU2V0LUNvb2tpZTogLi50ZXN0Mj0iX2V4cGlyZXM9
IjsgZXhwaXJlcz1TZXAgMTUsIDIwMTcgMDQ6NTU6MDc7IFBhdGg9LzsnCnByaW50ICdTZXQtQ29v
a2llOiAuLnRlc3QzPSJleHBpcmVzIjsgZXhwaXJlcz1TZXAgMTUsIDIwMTcgMDQ6NTU6MDc7IFBh
dGg9LzsnCnByaW50CnByaW50ICcnJwo8cD5PcGVuIFNhZmFyaSA+IFByZWZlcmVuY2VzID4gU2Vj
dXJpdHkgPiBTaG93IENvb2tpZXMgYW5kIG1ha2Ugc3VyZQpjb29raWUgaXMgc2F2ZWQuPC9wPgon
JycK
</data>

          </attachment>
      

    </bug>

</bugzilla>