Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
2adbacb8
Commit
2adbacb8
authored
May 11, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give better error messages when we can't display a bug.
parent
fc6da409
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
12 deletions
+27
-12
bug_form.pl
bug_form.pl
+19
-8
show_bug.cgi
show_bug.cgi
+8
-4
No files found.
bug_form.pl
View file @
2adbacb8
...
@@ -104,7 +104,7 @@ sub quoteUrls {
...
@@ -104,7 +104,7 @@ sub quoteUrls {
return
$text
;
return
$text
;
}
}
quietly_check_login
();
my
$loginok
=
quietly_check_login
();
my
$query
=
"
my
$query
=
"
select
select
...
@@ -149,13 +149,24 @@ if (@row = FetchSQLData()) {
...
@@ -149,13 +149,24 @@ if (@row = FetchSQLData()) {
$count
++
;
$count
++
;
}
}
}
else
{
}
else
{
my
$maintainer
=
Param
(
"maintainer"
);
SendSQL
(
"select groupset from bugs where bug_id = $::FORM{'id'}"
);
print
"<TITLE>Bug Splat Error</TITLE>\n"
;
if
(
@row
=
FetchSQLData
())
{
print
"<H1>Query Error</H1>Somehow something went wrong. Possibly if\n"
;
print
"<H1>Permission denied.</H1>\n"
;
print
"you mail this page to $maintainer, he will be able to fix\n"
;
if
(
$loginok
)
{
print
"things.<HR>\n"
;
print
"Sorry; you do not have the permissions necessary to see\n"
;
print
"Bug $::FORM{'id'} not found<H2>Query Text</H2><PRE>$query<PRE>\n"
;
print
"bug $::FORM{'id'}.\n"
;
exit
0
}
else
{
print
"Sorry; bug $::FORM{'id'} can only be viewed when logged\n"
;
print
"into an account with the appropriate permissions. To\n"
;
print
"see this bug, you must first\n"
;
print
"<a href=\"show_bug.cgi?id=$::FORM{'id'}&GoAheadAndLogIn=1\">"
;
print
"log in</a>."
;
}
}
else
{
print
"<H1>Bug not found</H1>\n"
;
print
"There does not seem to be a bug numbered $::FORM{'id'}.\n"
;
}
exit
;
}
}
$bug
{
'assigned_to'
}
=
DBID_to_name
(
$bug
{
'assigned_to'
});
$bug
{
'assigned_to'
}
=
DBID_to_name
(
$bug
{
'assigned_to'
});
...
...
show_bug.cgi
View file @
2adbacb8
...
@@ -22,11 +22,17 @@
...
@@ -22,11 +22,17 @@
use
diagnostics
;
use
diagnostics
;
use
strict
;
use
strict
;
require
"CGI.pl"
;
ConnectToDatabase
();
if
(
$::FORM
{
'GoAheadAndLogIn'
})
{
confirm_login
();
}
print
"Content-type: text/html\n"
;
print
"Content-type: text/html\n"
;
print
"\n"
;
print
"\n"
;
require
"CGI.pl"
;
if
(
!
defined
$::FORM
{
'id'
})
{
if
(
!
defined
$::FORM
{
'id'
})
{
print
"<H2>Search By Bug Number</H2>\n"
;
print
"<H2>Search By Bug Number</H2>\n"
;
print
"<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n"
;
print
"<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n"
;
...
@@ -37,8 +43,6 @@ if (!defined $::FORM{'id'}) {
...
@@ -37,8 +43,6 @@ if (!defined $::FORM{'id'}) {
exit
;
exit
;
}
}
ConnectToDatabase
();
GetVersionTable
();
GetVersionTable
();
PutHeader
(
"Bugzilla bug $::FORM{'id'}"
,
"Bugzilla Bug"
,
$::FORM
{
'id'
});
PutHeader
(
"Bugzilla bug $::FORM{'id'}"
,
"Bugzilla Bug"
,
$::FORM
{
'id'
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment