Bug 375 - GCC gnatsweb
Summary: GCC gnatsweb
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: web (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-03 15:46 UTC by martin
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2000-07-03 15:46:00 UTC
 Date: Mon, 3 Jul 2000 13:17:12 +0100 (BST)
 Original-Message-ID: <Pine.SOL.4.21.0007031259200.23500-100000@orange.csi.cam.ac.uk>

 Attempting to search the GCC gnatsweb
 (http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl) I noticed a few
 problems:

 * The login page makes no mention of needing to have cookies
 enabled; but without cookies enabled it just redirects to another login
 page (under Netscape) or goes to a "Redirecting" page which does nothing
 (under lynx).  The latter problem seems to be because it is trying to use
 an HTTP "Refresh" header, which is not mentioned in RFC 2616 (the HTTP 1.1
 spec), and also applies even if cookies are accepted.

 * Under lynx -cookies, after accepting two cookies, lynx then gives an
 error "Accept invalid cookie path=/cgi-bin/gnatsweb.pl as a prefix of
 '/cgi-bin'? (n)".  If this is indeed invalid, the gnatsweb should be
 fixed.

 * When using Netscape and accepting cookies it is possible to log in as
 guest, but then searching for category "c" also shows up bugs in category
 "c++".

 -- 
 Joseph S. Myers
 jsm28@cam.ac.uk

Release:
2.95.2
Comment 1 Gerald Pfeifer 2000-07-04 11:26:08 UTC
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: jsm28@cam.ac.uk, gcc-patches@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org
Subject: Re: web/375: Re: GCC gnatsweb
Date: Tue, 4 Jul 2000 11:26:08 +0200 (CEST)

 >>Number:         375
 >>Category:       web
 >  * The login page makes no mention of needing to have cookies
 >  enabled; but without cookies enabled it just redirects to another login
 >  page (under Netscape) or goes to a "Redirecting" page which does nothing
 >  (under lynx).
 
 GNATSweb is trying to be overly clever and thus miserably fails with the
 annoying failure mode you observed.
  
 There *are* checks whether your browser accepts cookies, but these are
 implemented using Javascript. Of course many (if not most) of those who
 cannot or do not want to use Cookies also cannot or do not want to use
 Javascript! <ouch>
 
 Fixed by the patch below which I already installed.
 
 Thanks for pointing this out!
 Gerald
 
 PS: I don't see how to address the other issues you pointed out in the
 PR right now. In the future, I suggest to submit separate reports for
 different issues (even if they can be summarized under one "meta-issue".)
 
 Index: gnatsweb.pl
 ===================================================================
 RCS file: /cvs/gcc/wwwdocs/cgi-bin/gnatsweb.pl,v
 retrieving revision 1.7
 retrieving revision 1.10
 diff -c -3 -p -r1.7 -r1.10
 *** gnatsweb.pl	2000/05/11 07:00:34	1.7
 --- gnatsweb.pl	2000/07/04 09:03:52	1.10
 *************** delCookie("gnatsweb-test-cookie");
 *** 2894,2901 ****
   if (val == null) {
       document.write("<h2>Warning: your browser is not accepting cookies</h2>"
           + "Gnatsweb requires cookies to keep track of your login and other "
 !         + "information.  Please enable cookies before pressing the "
 !         + "<tt>login</tt> button.");
   }
   
   //-->
 --- 2894,2900 ----
   if (val == null) {
       document.write("<h2>Warning: your browser is not accepting cookies</h2>"
           + "Gnatsweb requires cookies to keep track of your login and other "
 !         + "information.  Please enable cookies before logging in.");
   }
   
   //-->
 *************** sub login_page
 *** 2929,2935 ****
     # are not really needed; use the username as the default.
     my $def_password = $db_prefs{'password'} || $ENV{'REMOTE_USER'};
     print $q->start_form(),
 !         "<p>Use username '<b>guest</b>' and password '<b>guest</b>' for read-only and bug reporting access.",
           "<table>",
           "<tr><td>User Name:<td>",
           $q->textfield(-name=>'user',
 --- 2928,2938 ----
     # are not really needed; use the username as the default.
     my $def_password = $db_prefs{'password'} || $ENV{'REMOTE_USER'};
     print $q->start_form(),
 !         "<p>Use username '<b>guest</b>' and password '<b>guest</b>' for".
 !         " read-only and bug reporting access.",
 !         " Unfortunately, GNATSweb requires cookies to keep track".
 !         " of your login and other information.  Please enable cookies".
 !         " before logging in.",
           "<table>",
           "<tr><td>User Name:<td>",
           $q->textfield(-name=>'user',
 
Comment 2 Gerald Pfeifer 2000-10-11 14:18:34 UTC
State-Changed-From-To: analyzed->suspended
State-Changed-Why: I fixed the first problem, but the other problems are basic
    GNATSweb problems and the others have not even responded to
    my first patch (which I sent twice), so I'm afraid there is
    nothing we can sensibly do about it. :-(
    
    Perhaps someone else could try to contact the GNATSweb folks as well?
Comment 3 Gerald Pfeifer 2000-10-11 21:18:35 UTC
From: gerald@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, gerald@gcc.gnu.org, jsm28@cam.ac.uk,
  martin@loewis.home.cs.tu-berlin.de
Cc:  
Subject: Re: web/375
Date: 11 Oct 2000 21:18:35 -0000

 Synopsis: GCC gnatsweb
 
 State-Changed-From-To: analyzed->suspended
 State-Changed-By: gerald
 State-Changed-When: Wed Oct 11 14:18:34 2000
 State-Changed-Why:
     I fixed the first problem, but the other problems are basic
     GNATSweb problems and the others have not even responded to
     my first patch (which I sent twice), so I'm afraid there is
     nothing we can sensibly do about it. :-(
     
     Perhaps someone else could try to contact the GNATSweb folks as well?
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=375&database=gcc
Comment 4 Gerald Pfeifer 2000-12-26 16:44:57 UTC
Responsible-Changed-From-To: gerald->unassigned
Responsible-Changed-Why: Not mine. I analysed it, but I'm not going to fix it.
Comment 5 Gerald Pfeifer 2000-12-26 16:48:48 UTC
Responsible-Changed-From-To: unassigned->gerald
Responsible-Changed-Why: Oops, I edited the wrong PR. Revert my previous change to "Reponsible".
Comment 6 Gerald Pfeifer 2000-12-27 00:44:57 UTC
From: gerald@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, gerald@gcc.gnu.org, jsm28@cam.ac.uk,
  martin@loewis.home.cs.tu-berlin.de, nobody@gcc.gnu.org
Cc:  
Subject: Re: web/375
Date: 27 Dec 2000 00:44:57 -0000

 Synopsis: GCC gnatsweb
 
 Responsible-Changed-From-To: gerald->unassigned
 Responsible-Changed-By: gerald
 Responsible-Changed-When: Tue Dec 26 16:44:57 2000
 Responsible-Changed-Why:
     Not mine. I analysed it, but I'm not going to fix it.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=375&database=gcc
Comment 7 Gerald Pfeifer 2000-12-27 00:48:48 UTC
From: gerald@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, gerald@gcc.gnu.org, jsm28@cam.ac.uk,
  martin@loewis.home.cs.tu-berlin.de, nobody@gcc.gnu.org
Cc:  
Subject: Re: web/375
Date: 27 Dec 2000 00:48:48 -0000

 Synopsis: GCC gnatsweb
 
 Responsible-Changed-From-To: unassigned->gerald
 Responsible-Changed-By: gerald
 Responsible-Changed-When: Tue Dec 26 16:48:48 2000
 Responsible-Changed-Why:
     Oops, I edited the wrong PR. Revert my previous change to "Reponsible".
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=375&database=gcc
Comment 8 Gerald Pfeifer 2001-01-22 02:28:42 UTC
State-Changed-From-To: suspended->closed
State-Changed-Why: I installed a patch last week that solves the "invalid cookie
    path" issue.
    
    The only problem remaining is the last one, which is now
    duplicated in web/1646, so I am closing this PR.
Comment 9 Gerald Pfeifer 2001-01-22 10:28:42 UTC
From: gerald@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, gerald@gcc.gnu.org, jsm28@cam.ac.uk,
  martin@loewis.home.cs.tu-berlin.de
Cc:  
Subject: Re: web/375
Date: 22 Jan 2001 10:28:42 -0000

 Synopsis: GCC gnatsweb
 
 State-Changed-From-To: suspended->closed
 State-Changed-By: gerald
 State-Changed-When: Mon Jan 22 02:28:42 2001
 State-Changed-Why:
     I installed a patch last week that solves the "invalid cookie
     path" issue.
     
     The only problem remaining is the last one, which is now
     duplicated in web/1646, so I am closing this PR.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=375&database=gcc