From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerald Pfeifer To: gnats-devel@sources.redhat.com Subject: gnatsweb and cookies w/o Javasript (fwd) Date: Wed, 11 Oct 2000 14:25:00 -0000 Message-id: X-SW-Source: 2000-q4/msg00004.html As it seems that the mailing list and development are getting active again, a final try to get some response. Please note that I didn't just complain or file a report, I actually provided a patch, so it's a bit frustrating not to get any response for that long. :-( Gerald ---------- Forwarded message ---------- From: Gerald Pfeifer To: gnats-devel@sourceware.cygnus.com Date: Tue, 25 Jul 2000 19:08:28 +0200 (CEST) Subject: gnatsweb and cookies w/o Javasript (fwd) I have not received any feedback for the patch included below, so I'm trying again, in the hope that this is the right address where someone will have a look. Gerald ---------- Forwarded message ---------- From: Gerald Pfeifer To: Kenneth H. Cox Cc: bug-gnats@gnu.org Date: Tue, 4 Jul 2000 12:04:28 +0200 (CEST) Subject: gnatsweb and cookies w/o Javasript Folks (including myself but just today we got a real bug report at the GCC project concerning this) often are caught by gnatsweb requiring cookies but not specifying that to the user. I realized that there is now Javascript code to do exactly that, but more often than not, folks with cookies disabled (or no support for cookies in the browser) do not have Javascript either! Please consider the patch below, which I already installed at the gcc.gnu.org (and thus the sources.redhat.com) GNATS site. (This patch also avoids the phrase "pressing the button" which does not apply to all users.) Gerald 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("

Warning: your browser is not accepting cookies

" + "Gnatsweb requires cookies to keep track of your login and other " ! + "information. Please enable cookies before pressing the " ! + "login button."); } //--> --- 2894,2900 ---- if (val == null) { document.write("

Warning: your browser is not accepting cookies

" + "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(), ! "

Use username 'guest' and password 'guest' for read-only and bug reporting access.", "", "
User Name:", $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(), ! "

Use username 'guest' and password 'guest' 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.", "", "
User Name:", $q->textfield(-name=>'user',