Closed Bug 612347 Opened 14 years ago Closed 13 years ago

Syntax errors in bugzilla.dtd prevent parsing of XML-formatted bug descriptions

Categories

(Bugzilla :: Query/Bug List, defect)

3.6.2
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 538428

People

(Reporter: jens, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.12 (KHTML, like Gecko) Chrome/9.0.572.1 Safari/534.12
Build Identifier: 3.6.2

There are two errors in bugzilla.dtd. These cause XML parse errors when trying to read XML-formatted bug descriptions. Specifically, this is breaking FogBugz's Bugzilla import script.

(1) On line 85. there is a missing #REQUIRED or #IMPLIED keyword:
          type_id CDATA
(2) There are two declarations of the delta_ts element:
<!ELEMENT delta_ts (#PCDATA)>

Adding an #IMPLIED keyword and removing the second delta_ts declaration makes xmllint happy.

Reproducible: Always

Steps to Reproduce:
1. Fetch some bug in XML form, e.g. from <https://bugzilla.mozilla.org/show_bug.cgi?ctype=xml&id=1>
2. Run the xmllint tool on the downloaded XML
Actual Results:  
DTD-related errors are reported.

Expected Results:  
Should have parsed correctly.
Summary: Syntax errors in bugzilla.dtd prevent parsing of bugs → Syntax errors in bugzilla.dtd prevent parsing of XML-formatted bug descriptions
(In reply to comment #0)
> (2) There are two declarations of the delta_ts element:
> <!ELEMENT delta_ts (#PCDATA)>

Except that the first one is for the bug, and the 2nd one for the attachment.
After upgrading to 3.6.2 yesterday, we hit this problem almost immediately.
This is a BIG problem as it apparently blows IE completely out of the water.

Can someone confirm that #IMPLIED is the correct keyword to add to the
type_id line?
IE9 doesn't complain when I view a bug as XML.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: x86 → All
Target Milestone: --- → Bugzilla 4.0
Version: unspecified → 3.6.2
LpSolit, is this related to the work I have done on bug 538428 and can be closed as duplicate? bug 538428 should address the xmllint issues as I used that for testing my changes.

dkl
Ah yes, definitely.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Target Milestone: Bugzilla 4.0 → ---
V.Duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.