<?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>15844</bug_id>
          
          <creation_ts>2007-11-05 07:09:54 -0800</creation_ts>
          <short_desc>Downloads get date modified date in the past</short_desc>
          <delta_ts>2007-11-07 00:52:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></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="Tony Crockford">tonyc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>mrowe</cc>
    
    <cc>tonyc</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60288</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Crockford">tonyc</who>
    <bug_when>2007-11-05 07:09:54 -0800</bug_when>
    <thetext>It appears that files downloaded are date stamped using the Last Modified HTTP Header, rather than using the system date (now) to mark the file as downloaded *now*

phpMyAdmin creates it&apos;s own last modified header, set to the date of installation and therefore files downloaded using Safari from phpMyAdmin have incorrect dates for date modified.

file download last modified date stamp should be *now* as per the system, not the http header, which could easily be spoofed.

this has an importance regarding back ups and file sorting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60296</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-05 09:12:32 -0800</bug_when>
    <thetext>Thanks for the bug report, Tony!

Do you have any publicly available download links that demonstrate this issue?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60300</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-11-05 09:38:10 -0800</bug_when>
    <thetext>I&apos;ve always found it very helpful that downloading preserves file date.

phpMyAdmin behavior as described sounds buggy, because it&apos;s unlikely to work with proxies anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60307</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Crockford">tonyc</who>
    <bug_when>2007-11-05 10:11:56 -0800</bug_when>
    <thetext>you can test this behaviour for yourself at the phpMyAdmin site demo:

http://www.phpmyadmin.net/home_page/demos.php

each of the demos will give you a different date.

Safari shouldn&apos;t be using the headers, surely?  a file downloaded today is modified today...

and these files are created at the point of download, so it&apos;s even more important not to use the http date?

(I&apos;m not sure exactly how phpMyAdmin affects it to be honest, I was surmising the date creation, but it does appear to create a header that isn&apos;t *now*)

all that said, should the browser be setting file modified dates at all?  surely it should be left to the OS to decide what date the file was modified?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60314</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-11-05 10:44:00 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Safari shouldn&apos;t be using the headers, surely?  a file downloaded today is
&gt; modified today...

In OS X, that&apos;s file creation time, which should be set to the time a local file was created. The semantics of modification date match Last-Modified header perfectly.

I think this bug is INVALID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60343</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Crockford">tonyc</who>
    <bug_when>2007-11-05 14:49:22 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Safari shouldn&apos;t be using the headers, surely?  a file downloaded today is
&gt; &gt; modified today...
&gt; 
&gt; In OS X, that&apos;s file creation time, which should be set to the time a local
&gt; file was created. The semantics of modification date match Last-Modified header
&gt; perfectly.
&gt; 
&gt; I think this bug is INVALID.

I download a mysql database, created in Safari now and it uses a date from the past.  The same file downloaded in Firefox, from the same online application uses the date now.

Safari is in error, by using the wrong date, or by changing the date to the http header, if that&apos;s where it&apos;s coming from.

it&apos;s a bug, it&apos;s demonstrable.

makes Safari useless if the date of file download is unreliable.

sorry.

&gt; 

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60344</commentid>
    <comment_count>6</comment_count>
    <who name="Tony Crockford">tonyc</who>
    <bug_when>2007-11-05 14:58:21 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Safari shouldn&apos;t be using the headers, surely?  a file downloaded today is
&gt; &gt; modified today...
&gt; 
&gt; In OS X, that&apos;s file creation time, which should be set to the time a local
&gt; file was created. The semantics of modification date match Last-Modified header
&gt; perfectly.

except if you download an image from a page it sets the modified date as now, rather than the date the image was last modified on the server, so it&apos;s not preserving original file dates at all. and if you are using an application to create a file for download, that should be the *now* date too, shouldn&apos;t it?



</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60457</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-06 17:11:26 -0800</bug_when>
    <thetext>This is not a WebKit issue.  Downloads are handled by other layers of the system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60458</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-06 17:12:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/5584136&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60533</commentid>
    <comment_count>9</comment_count>
    <who name="Tony Crockford">tonyc</who>
    <bug_when>2007-11-07 00:44:35 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; This is not a WebKit issue.  Downloads are handled by other layers of the
&gt; system.
&gt; 

But the same system, with a differnt broswer does not exhibit the same problem.

demonstrably an issue only when using webkit (or Safari) but not Firefox.

explain?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60534</commentid>
    <comment_count>10</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-07 00:52:12 -0800</bug_when>
    <thetext>Firefox uses it&apos;s own networking layer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>