blowfishJ / google-safe-browsing

Automatically exported from code.google.com/p/google-safe-browsing
1 stars 0 forks source link

beta 0.2 zipfile has bogus creation times, leading to python byte compile times #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. unzip the 0.2 beta file

What is the expected output? What do you see instead?

total 264
-r--r-----@ 1 nickgalbreath  staff  11358 Jun 29  1956 COPYING
-r-xr-x---@ 1 nickgalbreath  staff      0 Jun 29  1956 __init__.py
-r-xr-x---@ 1 nickgalbreath  staff  14100 Jun 29  1956 client.py
-r-xr-x---@ 1 nickgalbreath  staff    965 Jun 29  1956 client_test.py
-r-xr-x---@ 1 nickgalbreath  staff   2480 Jun 29  1956 datastore.py
-r-xr-x---@ 1 nickgalbreath  staff  11623 Jun 29  1956 expression.py
-r-xr-x---@ 1 nickgalbreath  staff  10327 Jun 29  1956 expression_test.py
-r-xr-x---@ 1 nickgalbreath  staff   4046 Jun 29  1956 hashprefix_trie.py
-r-xr-x---@ 1 nickgalbreath  staff   1865 Jun 29  1956 hashprefix_trie_test.py
-r-xr-x---@ 1 nickgalbreath  staff  11898 Jun 29  1956 sblist.py
-r-xr-x---@ 1 nickgalbreath  staff   9613 Jun 29  1956 sblist_test.py
-r-xr-x---@ 1 nickgalbreath  staff  24035 Jun 29  1956 server.py
-r-xr-x---@ 1 nickgalbreath  staff  10415 Jun 29  1956 server_test.py
-r-xr-x---@ 1 nickgalbreath  staff    922 Jun 29  1956 util.py

What version of the product are you using? On what operating system?

Not 1956!

When running this causes python to barf

python dashboard.py 
Traceback (most recent call last):
  File "dashboard.py", line 21, in <module>
    from googlesafebrowsing import client
OverflowError: modification time overflows a 4 byte field

Please provide any additional information below.

Original issue reported on code.google.com by nickgsup...@gmail.com on 27 Jul 2010 at 9:54

GoogleCodeExporter commented 9 years ago
So on my machine, the files do have strange timestamps, but the tests run fine. 
What OS are you on, and what did you use to unzip the file?

total 132
-r--r----- 1 gcasto eng 11358 Aug  5  2092 COPYING
-r-xr-x--- 1 gcasto eng     0 Aug  5  2092 __init__.py
-r-xr-x--- 1 gcasto eng 14100 Aug  5  2092 client.py
-r-xr-x--- 1 gcasto eng   965 Aug  5  2092 client_test.py
-r-xr-x--- 1 gcasto eng  2480 Aug  5  2092 datastore.py
-r-xr-x--- 1 gcasto eng 11623 Aug  5  2092 expression.py
-r-xr-x--- 1 gcasto eng 10327 Aug  5  2092 expression_test.py
-r-xr-x--- 1 gcasto eng  4046 Aug  5  2092 hashprefix_trie.py
-r-xr-x--- 1 gcasto eng  1865 Aug  5  2092 hashprefix_trie_test.py
-r-xr-x--- 1 gcasto eng 11898 Aug  5  2092 sblist.py
-r-xr-x--- 1 gcasto eng  9613 Aug  5  2092 sblist_test.py
-r-xr-x--- 1 gcasto eng 24035 Aug  5  2092 server.py
-r-xr-x--- 1 gcasto eng 10415 Aug  5  2092 server_test.py
-r-xr-x--- 1 gcasto eng   922 Aug  5  2092 util.py

 ./server_test.py 
DEBUG:root:http url: 
"http://safebrowsing.clients.google.com:80/safebrowsing/downloads?client=api&app
ver=1.0&pver=2.2&wrkey=BOGUS_WRAPPED_KEY&apikey=BOGUS_API_KEY"
DEBUG:root:Parsed main body MAC: "kGPAvI_I7pMg1oGetPQvmGl6ZGU="
DEBUG:root:valid list names: "lista,listb"
DEBUG:root:download response line: "i:lista"
DEBUG:root:download response line: "u:rd.com/lista-s"
DEBUG:root:Getting redirect: "http://rd.com/lista-s"
DEBUG:root:chunk header: "s:2:4:22"
DEBUG:root:chunk header: "s:3:4:0"
DEBUG:root:download response line: "u:rd.com/lista-a"
DEBUG:root:Getting redirect: "http://rd.com/lista-a"
DEBUG:root:chunk header: "a:10:4:27"
DEBUG:root:chunk header: "a:7:4:0"
DEBUG:root:download response line: "ad:1-2,4-5,7"
DEBUG:root:download response line: "i:listb"
DEBUG:root:download response line: "u:rd.com/listb-a"
DEBUG:root:Getting redirect: "http://rd.com/listb-a"
DEBUG:root:chunk header: "a:1:6:1546"
DEBUG:root:download response line: "sd:2-6"
.DEBUG:root:http url: 
"http://safebrowsing.clients.google.com:80/safebrowsing/gethash?client=api&appve
r=1.0&pver=2.2&wrkey=BOGUS_WRAPPED_KEY&apikey=BOGUS_API_KEY"
DEBUG:root:http url: 
"http://safebrowsing.clients.google.com:80/safebrowsing/gethash?client=api&appve
r=1.0&pver=2.2&wrkey=BOGUS_WRAPPED_KEY&apikey=BOGUS_API_KEY"
.DEBUG:root:http url: 
"http://safebrowsing.clients.google.com:80/safebrowsing/list?client=api&appver=1
.0&pver=2.2&wrkey=BOGUS_WRAPPED_KEY&apikey=BOGUS_API_KEY"
...DEBUG:root:http url: 
"https://sb-ssl.google.com:443/safebrowsing/newkey?client=api&appver=1.0&pver=2.
2&wrkey=BOGUS_WRAPPED_KEY"
.
----------------------------------------------------------------------
Ran 6 tests in 0.017s

OK

Original comment by GCa...@gmail.com on 16 Aug 2010 at 11:11

GoogleCodeExporter commented 9 years ago
Had the same problem on ubuntu 10.04 LTS, tar (GNU tar) 1.22 gzip 1.3.12

uname -a 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64 
GNU/Linux

to get around the timestamp issue I touched all files in the directory and it's 
sorted.

Original comment by macleon...@gmail.com on 19 Oct 2010 at 2:05