On Thu, Nov 27, 2003 at 10:18:25PM -0330, John Austin wrote: > On Thu, 2003-11-27 at 17:35, Simon Pepping wrote: > > Hi, > > > > When I am logged in in the bug database, I must continually renew my > > login. I use Mozilla Firebird 0.6 and Mozilla 1.4 on Linux. Cookies > > are enabled. I have a cookie from nagoya, called BUGLIST. > > > > When I use IE on Windows98 all goes well. > > > > What do I do wrong? Is there a more specific email address for > > questions about bugzilla? > > > It's a pain of a problem to solve, but 'Ethereal' from > 'ethereal.com' should be able to track the session down > for you. It will show you all of the HTTP PDU's and timings. > > Good graphical interface.
A good tool indeed, which provides an interesting insight in network traffic. For debugging of login and cookie problems its information is a bit overwhelming. Mozilla has the possibility to write a cookie log. This provided the required insight. The problem is due to combined Bugzilla and Mozilla errors. This is the interesting part: 1024[8057408]: ===== COOKIE NOT ACCEPTED ===== 1024[8057408]: request URL: http://nagoya.apache.org/bugzilla/query.cgi 1024[8057408]: cookie string: [EMAIL PROTECTED] ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT,Bugzilla_logincookie=50462 ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT,Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT,BUGLIST= 1024[8057408]: current time: Sun Nov 30 15:18:50 2003 GMT 1024[8057408]: rejected because cookie has already expired Indeed, the third cookie string is dated in the year 80. (Bugzilla's error) This is Ethereal's log of the same interaction (POST of login data and reply with cookies): POST /bugzilla/enter_bug.cgi HTTP/1.0 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Referer: http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=Fop Cookie: BUGLIST=25031:25059 Content-Type: application/x-www-form-urlencoded Content-Length: 106 Host: nagoya.apache.org Connection: close Accept-Encoding: deflate; q=1.0, x-gzip; q=0.9, gzip; q=0.9, identity; q=0.1 Bugzilla_login=spepping%40leverkruid.nl&Bugzilla_password=xxxxxxxxxxxxxx&product=Fop&GoAheadAndLogIn=Login HTTP/1.1 200 OK Date: Sun, 30 Nov 2003 15:21:56 GMT Server: Apache/2.0.40-dev (Unix) DAV/2 SVN/0.13.1 (dev build) Set-Cookie: [EMAIL PROTECTED] ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT Set-Cookie: Bugzilla_logincookie=50463 ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT Set-Cookie: Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT Content-Length: 5993 Connection: close Content-Type: text/html; charset=UTF-8 <HTML><HEAD> <TITLE>Enter Bug</TITLE> etc. On Windos Mozilla shows this cookie log: 0[2f4780]: ===== COOKIE ACCEPTED ===== 0[2f4780]: request URL: http://nagoya.apache.org/bugzilla/query.cgi 0[2f4780]: cookie string: [EMAIL PROTECTED] ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT Bugzilla_logincookie=50481 ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT BUGLIST= 0[2f4780]: current time: Mon Dec 01 08:34:31 2003 GMT 0[2f4780]: ---------------- 0[2f4780]: name: Bugzilla_login 0[2f4780]: value: [EMAIL PROTECTED] 0[2f4780]: host: nagoya.apache.org 0[2f4780]: path: / 0[2f4780]: expires: Fri Jun 29 23:59:15 2029 GMT 0[2f4780]: is secure: false 0[2f4780]: 0[2f4780]: ===== COOKIE ACCEPTED ===== 0[2f4780]: request URL: http://nagoya.apache.org/bugzilla/query.cgi 0[2f4780]: cookie string: Bugzilla_logincookie=50481 ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT BUGLIST= 0[2f4780]: current time: Mon Dec 01 08:34:31 2003 GMT 0[2f4780]: ---------------- 0[2f4780]: name: Bugzilla_logincookie 0[2f4780]: value: 50481 0[2f4780]: host: nagoya.apache.org 0[2f4780]: path: / 0[2f4780]: expires: Fri Jun 29 23:59:15 2029 GMT 0[2f4780]: is secure: false 0[2f4780]: 0[2f4780]: ===== COOKIE NOT ACCEPTED ===== 0[2f4780]: request URL: http://nagoya.apache.org/bugzilla/query.cgi 0[2f4780]: cookie string: Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT BUGLIST= 0[2f4780]: current time: Mon Dec 01 08:34:31 2003 GMT 0[2f4780]: rejected because cookie has already expired This is the correct behaviour. There are three cookies, and only one is rejected. It turns out that Bugzilla never requires the rejected cookie. The above is therefore also Mozilla's error in some versions. This problem was reported in Mozilla's bug database as bug report 193951, http://bugzilla.mozilla.org/show_bug.cgi?id=193951. It was solved by newer versions. I am going to upgrade now, and hope that it is true. Note that Mozdev has a project livehttpheaders, http://livehttpheaders.mozdev.org/, which should enable one to make headers visible in the browser. Seems it could be an ideal tool for this kind of situations. Thanks for the suggestions. Simon -- Simon Pepping email: [EMAIL PROTECTED] home page: http://www.leverkruid.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]