#78526 www.debian.org: Add a WWW frontend to the BTS

Package:
debbugs
Source:
debbugs
Submitter:
Javier Fernandez-Sanguino Pena
Date:
2019-11-01 09:45:04 UTC
Severity:
wishlist
#78526#5
Date:
2000-12-01 19:25:11 UTC
From:
To:
(as sent to the debian-www mailing list)

        Even though we currently have 'bug' and 'reportbug' as a way to
easily make users send bugs to the BTS, having dinner with other Debian
developers (or wannabes) in the last Hispalinux Congress in Madrid, Spain,
one of the people present (Jaime Villate) made the following, and
interesting, proposition.

        Users tend to view the use of mail like a personal tool, whileas
they are used to see the web as a way to communicate with other companies
through form submission. Debian does not have a WWW interface to file
bugs,
should it be made?

        Some might think that if we used cgi posts (or whatever form
available) the BTS would not be able to track the user that sent the BTS
and
could lead to spam in the BTS, or unavailability to track the problems
further (since developers could not ask for more information)... then
comes
the inspiration: use ACTION=mailto:XXX@bugs.debian.org

        We could program a daemon (or even add this functionality to
submit@bugs) that would receive the information sent by the user in the
following form:
package=XXXX&version=XXX&priority=XVASDFA&description=ASFasdlfjalfj
and resend it with the nice:
Package:
Version:
Priority:

        (description)

        That we all love :) and keeping the user's email in the bug. The
user
would receive (by email) the notification of the opening of the bug and
further changes.

        Since currently many browsers have built in mail capabilities if
properly configured and users use them at the same time, this might not
seem a bad idea. Is it?

        I would love to see discussion on this issue and maybe help with
the implementation (with a little help of Perl :) So, what do other
developers think?

        Best regards

        Javi

Proof of concept:
        HTML form -> (user sends email) -> automatic gatherer ---------->BTS
        (like deb-test.html)            (parse_email | parse_query )

deb-test.html

<HTML>
<BODY>
<FORM ACTION="mailto:jfs-local@dat.etsit.upm.es?subject=bug">
Package: <INPUT TYPE=text NAME=package SIZE=20><BR>
Version: <INPUT TYPE=text NAME=version SIZE=20><BR>
Priority: <SELECT NAME=priority>
<OPTION VALUE="normal" SELECTED>normal
<OPTION VALUE="wishlist">wishlist
<OPTION VALUE="important">important
<OPTION VALUE="critical">critical
</SELECT> <BR>
Description: <TEXTAREA COLS=60 ROWS=10 NAME=description>Insert your description here</TEXTAREA><BR>
<INPUT TYPE=submit NAME=send>
</FORM>
</BODY>
</HTML>

parse_email

#!/usr/bin/perl
# Reads a mail from stdin and calls another script

#$debug=1;
$query_started = 0;
while ($line=<STDIN>) {
	chmop;
	if ( $line =~ /^From\s+/ ) {
		parsemail() if $query_started;
		print "Receiving an email\n" if $debug;
		$e_mail = "";
		$query = "";
		$query_started = 0;
	}

	$e_mail=$1 if $line =~ /^From: (.*)$/;
	$query = $query.$line if $query_started;
	$query_started = 1 if $line =~ /^$/;
}
parsemail() if $query_started;

exit 0;

sub parsemail {
	print "Now will call script with:\n" if $debug;
	print "e-mail: $e_mail\n" if $debug;
	print "query: $query\n" if $debug;
	if ($pid=fork) {
		waitpid($pid,0)
	} else {
		die "cannot fork: $!" unless defined $pid;
		$return=`./parse_query.pl -m $e_mail "$query"`;
		exit;
	}

	return 0;
}

parsequery.pl

#!/usr/bin/perl
# Receive a QUERY_STRING from the command line (as ARGV) and print contents
# can be used with script that reads on stdin mails and calls this one with
# the available options

use Getopt::Std;
use CGI::Request;

# Retrieve options from command line
getopts('m:');

$e_mail = $opt_m;
$SENDTO = "";
# put a valid email here (for example  submit@bugs.debian.org)

# read to environment
# process it
#CGI::Request::Debug(0);
$req= new CGI::Request;
@names = $req->params;
open (MAIL,"| mail $SENDTO") or die ("Could not send mail: $!");
# TODO: send as if sent by the original user
foreach $name (@names) {
	@values = $req->param($name);
	foreach $value (@values) {
		print MAIL "\t$value\n";
	}
}
close MAIL;
exit 0;

#78526#10
Date:
2001-01-05 17:29:00 UTC
From:
To:
	The Freeradius project (more specifically Chad Miller) have
developed a WWW fronted to its own BTS as proposed in this bug report.
It can be checked in http://bugs.freeradius.org/cgi-bin-local/submitbug

	Please, I do think this idea is quite interesting (although I
would use the browser's MUA capabilities in the last step) and think we
could use this same code (ask Chad Miller <cmiller@surfsouth.com> for it)

	Regards

	Javi

#78526#15
Date:
2001-01-05 20:53:07 UTC
From:
To:
I'm not sure about the exact reason why we don't have our own web form to
submit bugs, but I think it must be on purpose because nothing has been
done <shrug> OTOH maybe it's just laziness or fear not to break anything? :)

#78526#20
Date:
2001-01-09 15:59:38 UTC
From:
To:
	How about discussing this on debian-www? I tried but nobody said anything, and
after a few attempts I dismissed it (and openened the bug report). Nobody said
anything about it being a problem.

	Regads

	Javi

Josip Rodin escribió:

#78526#25
Date:
2001-01-14 18:14:53 UTC
From:
To:
This _is_ debian-www, the list is the maintainer for the www.debian.org
pseudo-package :)

#78526#30
Date:
2001-02-18 00:50:05 UTC
From:
To:
First, I think that using mailto action is not a good idea. It makes
necessary that the browser supports this protocol. What about the people
who don't use integrated browser/mail packages, and whose browser is not
correctly configured?

What I would like more is a confirmation mail that has to be replied to
in order to make the web submission valid.

Btw, at the moment everyone can spam the DBS with invalid addresses,
can't they?

Well, shouldn't this bug maybe reassigned to bugs.debian.org?

#78526#37
Date:
2010-07-26 18:36:13 UTC
From:
To:
Forwarded to the relevant bug report.
#78526#46
Date:
2013-08-13 13:50:29 UTC
From:
To:
сие приличнее всякого учителя http://uco.me/852322
#78526#51
Date:
2014-05-06 11:36:28 UTC
From:
To:
repl thisssss
#78526#56
Date:
2014-05-09 18:01:01 UTC
From:
To:
-- 
Dr. Brucevansanu United Kingdom

#78526#63
Date:
2019-11-01 09:41:46 UTC
From:
To:
I am contacting you to know if you got my previous email I send to you or I should resend it. Thanks