Bug#451984: does not check server for updated version of cached download

Timo Juhani Lindfors timo.lindfors at iki.fi
Sun Aug 22 12:30:13 UTC 2010


Hi,

I tried to reproduce this bug but I could not figure out what the
server setup should exactly be. Here are steps to reproduce the bug
that don't depend on any external server:

Steps to reproduce:
1) start the following in another terminal:

while true; do
    nc -l -p 1234 -vv <<EOF
HTTP/1.1 200 OK
Date: Sun, 22 Aug 2010 12:02:22 GMT
Server: Apache/2.2.9 (Debian) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8g
Last-Modified: Mon, 05 Jul 2010 10:58:53 GMT
ETag: "c015439-2559f-48aa1d2916b95"
Accept-Ranges: bytes
Content-Length: 30
Vary: User-Agent
Content-Type: application/pdf
Content-Language: en

$(date)
EOF
done

2) rm -fr /tmp/iceweasel-home && mkdir /tmp/iceweasel-home
3) cp ~/.Xauthority /tmp/iceweasel-home
4) HOME=/tmp/iceweasel-home iceweasel -no-remote http://localhost:1234/testcase1.pdf
5) choose "Save File"
6) click "OK"
7) choose File->Quit
8) HOME=/tmp/iceweasel-home iceweasel -no-remote http://localhost:1234/testcase1.pdf
9) choose "Save File"
10) click "OK"
11) choose File->Quit
12) head /tmp/iceweasel-home/Desktop/testcase*

Expected results:
4 & 8) netcat prints

connect to [127.0.0.1] from localhost [127.0.0.1] 57360

since iceweasel connects to it to get the file.
12) The timestamps differ

Actual results:
4) netcat prints

connect to [127.0.0.1] from localhost [127.0.0.1] 57360

8) netcat does not print anything. iceweasel does not even try to get
the file but uses cached copy instead.
12) the timestamps are the same:

==> /tmp/iceweasel-home/Desktop/testcase1(2).pdf <==
Sun Aug 22 15:11:29 EEST 2010

==> /tmp/iceweasel-home/Desktop/testcase1.pdf <==
Sun Aug 22 15:11:29 EEST 2010


More info:
1) I can reproduce this with the following versions:

debian lenny            | amd64 | iceweasel |3.0.6-3
debian sid (2010-08-22) | amd64 | iceweasel |3.5.11-1

2) I can not reproduce the bug with the following versions:

ubuntu lucid | amd64 | firefox | 3.6.8+build1+nobinonly-0ubuntu0.9.10.1






More information about the pkg-mozilla-maintainers mailing list