1998-09-16 01:49:26 +04:00
|
|
|
#!/usr/bonsaitools/bin/perl -w
|
|
|
|
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
1998-08-26 10:14:20 +04:00
|
|
|
#
|
1999-11-02 02:33:56 +03:00
|
|
|
# The contents of this file are subject to the Mozilla Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
1998-08-26 10:14:20 +04:00
|
|
|
# The Original Code is the Bugzilla Bug Tracking System.
|
1999-11-02 02:33:56 +03:00
|
|
|
#
|
1998-08-26 10:14:20 +04:00
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
1999-11-02 02:33:56 +03:00
|
|
|
# Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
1998-08-26 10:14:20 +04:00
|
|
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
|
|
|
|
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
use diagnostics;
|
|
|
|
use strict;
|
1998-08-26 10:14:20 +04:00
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
require "CGI.pl";
|
|
|
|
|
1999-10-19 03:04:40 +04:00
|
|
|
# Shut up misguided -w warnings about "used only once". "use vars" just
|
|
|
|
# doesn't work for me.
|
|
|
|
|
|
|
|
sub sillyness {
|
|
|
|
my $zz;
|
2000-01-27 02:15:30 +03:00
|
|
|
$zz = $::legal_keywords;
|
1999-10-19 03:04:40 +04:00
|
|
|
$zz = $::usergroupset;
|
|
|
|
$zz = %::FORM;
|
|
|
|
}
|
1998-09-16 01:49:26 +04:00
|
|
|
|
|
|
|
print "Content-type: text/html\n\n";
|
1999-09-23 23:08:03 +04:00
|
|
|
PutHeader ("Full Text Bug Listing");
|
1998-09-16 01:49:26 +04:00
|
|
|
|
1999-03-11 19:30:54 +03:00
|
|
|
ConnectToDatabase();
|
|
|
|
quietly_check_login();
|
|
|
|
|
2000-01-27 02:15:30 +03:00
|
|
|
GetVersionTable();
|
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
my $generic_query = "
|
1998-08-26 10:14:20 +04:00
|
|
|
select
|
|
|
|
bugs.bug_id,
|
|
|
|
bugs.product,
|
|
|
|
bugs.version,
|
|
|
|
bugs.rep_platform,
|
|
|
|
bugs.op_sys,
|
|
|
|
bugs.bug_status,
|
|
|
|
bugs.bug_severity,
|
|
|
|
bugs.priority,
|
|
|
|
bugs.resolution,
|
|
|
|
assign.login_name,
|
|
|
|
report.login_name,
|
|
|
|
bugs.component,
|
|
|
|
bugs.bug_file_loc,
|
1999-01-28 00:17:10 +03:00
|
|
|
bugs.short_desc,
|
|
|
|
bugs.target_milestone,
|
|
|
|
bugs.qa_contact,
|
2000-01-27 02:15:30 +03:00
|
|
|
bugs.status_whiteboard,
|
|
|
|
bugs.keywords
|
1998-08-26 10:14:20 +04:00
|
|
|
from bugs,profiles assign,profiles report
|
|
|
|
where assign.userid = bugs.assigned_to and report.userid = bugs.reporter and
|
1999-03-11 19:30:54 +03:00
|
|
|
bugs.groupset & $::usergroupset = bugs.groupset and";
|
1998-08-26 10:14:20 +04:00
|
|
|
|
1999-10-20 19:17:37 +04:00
|
|
|
$::FORM{'buglist'} = "" unless exists $::FORM{'buglist'};
|
1998-09-16 01:49:26 +04:00
|
|
|
foreach my $bug (split(/:/, $::FORM{'buglist'})) {
|
|
|
|
SendSQL("$generic_query bugs.bug_id = $bug");
|
1998-08-26 10:14:20 +04:00
|
|
|
|
1998-09-16 01:49:26 +04:00
|
|
|
my @row;
|
|
|
|
if (@row = FetchSQLData()) {
|
|
|
|
my ($id, $product, $version, $platform, $opsys, $status, $severity,
|
|
|
|
$priority, $resolution, $assigned, $reporter, $component, $url,
|
1999-01-28 00:17:10 +03:00
|
|
|
$shortdesc, $target_milestone, $qa_contact,
|
2000-01-27 02:15:30 +03:00
|
|
|
$status_whiteboard, $keywords) = (@row);
|
1998-09-16 01:49:26 +04:00
|
|
|
print "<IMG SRC=\"1x1.gif\" WIDTH=1 HEIGHT=80 ALIGN=LEFT>\n";
|
|
|
|
print "<TABLE WIDTH=100%>\n";
|
|
|
|
print "<TD COLSPAN=4><TR><DIV ALIGN=CENTER><B><FONT =\"+3\">" .
|
|
|
|
html_quote($shortdesc) .
|
|
|
|
"</B></FONT></DIV>\n";
|
|
|
|
print "<TR><TD><B>Bug#:</B> <A HREF=\"show_bug.cgi?id=$id\">$id</A>\n";
|
|
|
|
print "<TD><B>Product:</B> $product\n";
|
|
|
|
print "<TD><B>Version:</B> $version\n";
|
|
|
|
print "<TD><B>Platform:</B> $platform\n";
|
|
|
|
print "<TR><TD><B>OS/Version:</B> $opsys\n";
|
|
|
|
print "<TD><B>Status:</B> $status\n";
|
|
|
|
print "<TD><B>Severity:</B> $severity\n";
|
|
|
|
print "<TD><B>Priority:</B> $priority\n";
|
|
|
|
print "<TR><TD><B>Resolution:</B> $resolution</TD>\n";
|
|
|
|
print "<TD><B>Assigned To:</B> $assigned\n";
|
|
|
|
print "<TD><B>Reported By:</B> $reporter\n";
|
1999-01-28 00:17:10 +03:00
|
|
|
if (Param("useqacontact")) {
|
|
|
|
my $name = "";
|
|
|
|
if ($qa_contact > 0) {
|
|
|
|
$name = DBID_to_name($qa_contact);
|
|
|
|
}
|
|
|
|
print "<TD><B>QA Contact:</B> $name\n";
|
|
|
|
}
|
1998-09-16 01:49:26 +04:00
|
|
|
print "<TR><TD><B>Component:</B> $component\n";
|
1999-01-28 00:17:10 +03:00
|
|
|
if (Param("usetargetmilestone")) {
|
|
|
|
print "<TD><B>Target milestone:</B>$target_milestone\n";
|
|
|
|
}
|
1999-05-12 08:31:35 +04:00
|
|
|
print "<TR><TD COLSPAN=6><B>URL:</B> ";
|
|
|
|
print "<A HREF=\"" . $url . "\">" . html_quote($url) . "</A>\n";
|
1999-01-28 00:17:10 +03:00
|
|
|
print "<TR><TD COLSPAN=6><B>Summary:</B> " . html_quote($shortdesc) . "\n";
|
2000-01-27 02:15:30 +03:00
|
|
|
if (@::legal_keywords) {
|
|
|
|
print "<TR><TD><B>Keywords: </B>$keywords</TD></TR>\n";
|
|
|
|
}
|
1999-01-28 00:17:10 +03:00
|
|
|
if (Param("usestatuswhiteboard")) {
|
|
|
|
print "<TR><TD COLSPAN=6><B>Status Whiteboard:" .
|
|
|
|
html_quote($status_whiteboard) . "\n";
|
|
|
|
}
|
|
|
|
print "<TR><TD><B>Description:</B>\n</TABLE>\n";
|
2000-03-10 21:01:32 +03:00
|
|
|
print GetLongDescriptionAsHTML($bug);
|
1998-09-16 01:49:26 +04:00
|
|
|
print "<HR>\n";
|
|
|
|
}
|
1998-08-26 10:14:20 +04:00
|
|
|
}
|