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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
99da5c19
Commit
99da5c19
authored
Apr 04, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 126883 - bugzilla.dtd isn't quite correct
r=gerv, justdave
parent
a34eeb20
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
Bug.pm
Bug.pm
+1
-1
Bug.pm
Bugzilla/Bug.pm
+1
-1
bugzilla.dtd
bugzilla.dtd
+1
-1
sanitycheck.cgi
sanitycheck.cgi
+18
-0
No files found.
Bug.pm
View file @
99da5c19
...
...
@@ -248,7 +248,7 @@ sub emitXML {
$xml
.=
"<bug>\n"
;
foreach
my
$field
(
"bug_id"
,
"
urlbase"
,
"
bug_status"
,
"product"
,
foreach
my
$field
(
"bug_id"
,
"bug_status"
,
"product"
,
"priority"
,
"version"
,
"rep_platform"
,
"assigned_to"
,
"delta_ts"
,
"component"
,
"reporter"
,
"target_milestone"
,
"bug_severity"
,
"creation_ts"
,
"qa_contact"
,
"op_sys"
,
"resolution"
,
"bug_file_loc"
,
...
...
Bugzilla/Bug.pm
View file @
99da5c19
...
...
@@ -248,7 +248,7 @@ sub emitXML {
$xml
.=
"<bug>\n"
;
foreach
my
$field
(
"bug_id"
,
"
urlbase"
,
"
bug_status"
,
"product"
,
foreach
my
$field
(
"bug_id"
,
"bug_status"
,
"product"
,
"priority"
,
"version"
,
"rep_platform"
,
"assigned_to"
,
"delta_ts"
,
"component"
,
"reporter"
,
"target_milestone"
,
"bug_severity"
,
"creation_ts"
,
"qa_contact"
,
"op_sys"
,
"resolution"
,
"bug_file_loc"
,
...
...
bugzilla.dtd
View file @
99da5c19
...
...
@@ -5,7 +5,7 @@
maintainer CDATA #REQUIRED
exporter CDATA #IMPLIED
>
<!ELEMENT bug (bug_id, (
exporter?, urlbase?,
bug_status, product, priority, version, rep_platform, assigned_to, delta_ts, component, reporter, target_milestone?, bug_severity, creation_ts, qa_contact?, op_sys, resolution?, bug_file_loc?, short_desc?, keywords*, status_whiteboard?, dependson*, blocks*, cc*, long_desc*, attachment*)?)>
<!ELEMENT bug (bug_id, (bug_status, product, priority, version, rep_platform, assigned_to, delta_ts, component, reporter, target_milestone?, bug_severity, creation_ts, qa_contact?, op_sys, resolution?, bug_file_loc?, short_desc?, keywords*, status_whiteboard?, dependson*, blocks*, cc*, long_desc*, attachment*)?)>
<!ATTLIST bug
error (NotFound | NotPermitted | InvalidBugId) #IMPLIED
>
...
...
sanitycheck.cgi
View file @
99da5c19
...
...
@@ -140,6 +140,24 @@ if (exists $::FORM{'rebuildvotecache'}) {
print
"OK, now running sanity checks.<P>\n"
;
# This one goes first, because if this is wrong, then the below tests
# will probably fail too
# This isn't extensible. Thats OK; we're not adding any more enum fields
Status
(
"Checking for invalid enumeration values"
);
foreach
my
$field
((
"bug_severity"
,
"bug_status"
,
"op_sys"
,
"priority"
,
"rep_platform"
,
"resolution"
))
{
# undefined enum values in mysql are an empty string which equals 0
SendSQL
(
"SELECT bug_id FROM bugs WHERE $field=0 ORDER BY bug_id"
);
my
@invalid
;
while
(
MoreSQLData
())
{
push
(
@invalid
,
FetchOneColumn
());
}
if
(
@invalid
)
{
Alert
(
"Bug(s) found with invalid $field value: "
.
join
(
', '
,
@invalid
));
}
}
CrossCheck
(
"keyworddefs"
,
"id"
,
[
"keywords"
,
"keywordid"
]);
...
...
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