[dokuwiki] Re: bug in search form, with IE6?

  • From: Manfred Heumann <mheumann@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 21 Sep 2006 09:44:25 +0200

Andreas Gohr wrote:

> Can anyone reproduce it at his own wiki different from
> wiki.splitbrain.org? Has anyone an idea what the problem might be?

Can't reproduce it on my dokuwiki installation. But I clearly get it on
splitbrain. I took a look at the headers. Here's what happens:

IE says:
GET /?do=search&id=etasd HTTP/1.0
Accept: */*
Referer: http://wiki.splitbrain.org/
Accept-Language: de
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: wiki.splitbrain.org
Cookie: DokuWiki=b32e824087390172c568a565e0d2216b
Connection: keep-alive

And your server answers:
HTTP/1.0 200 OK
Transfer-Encoding: chunked
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: DW7bf951bde04f8626def79b479461d9b9=deleted; expires=Wed, 21
Sep 2005 07:32:59 GMT; path=/
Content-Type: text/html; charset=utf-8
Date: Thu, 21 Sep 2006 07:33:00 GMT
Server: lighttpd/1.4.11


Now it gets interesting. IE now says this:
GET /undefined HTTP/1.0
Accept: */*
Referer: http://wiki.splitbrain.org/?do=search&id=etasd
Accept-Language: de
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: wiki.splitbrain.org
Cookie: DokuWiki=b32e824087390172c568a565e0d2216b
Connection: keep-alive

But your server still comes up with an answer:
HTTP/1.0 200 OK
Transfer-Encoding: chunked
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: DW7bf951bde04f8626def79b479461d9b9=deleted; expires=Wed, 21
Sep 2005 07:32:59 GMT; path=/
Content-Type: text/html; charset=utf-8
Date: Thu, 21 Sep 2006 07:33:00 GMT
Server: lighttpd/1.4.11

Note that IE isn't POSTing anything to your server.

When IE messes up like that, it's usually because it interprets some
headers in strange ways. The Cache-Control headers might be too strict
(they are way too strict for IE when you access a dokuwiki over https
and try to download documents, btw). And that "Expires" header in the
second response seems very odd.


HTH,
Manni


-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: