Closed
Bug 550359
Opened 15 years ago
Closed 15 years ago
XML parsing error while searching in api
Categories
(addons.mozilla.org Graveyard :: API, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
5.8
People
(Reporter: krupa.mozbugs, Assigned: davedash)
References
()
Details
(Whiteboard: [z][r?jbalogh][gh:davedash])
steps to reproduce:
1.Search for https://preview.addons.mozilla.org/en-US/firefox/api/1.5/addon/592
observed behavior:
XML Parsing Error: not well-formed
Location: https://preview.addons.mozilla.org/en-US/firefox/api/1.5/search/we
Line Number 74, Column 1:
Also see:
https://preview.addons.mozilla.org/en-US/firefox/api/1.5/search/we
https://preview.addons.mozilla.org/en-US/firefox/api/1.5/search/you
API 1.2 URL: FAIL: https://preview.addons.mozilla.org/en-US/firefox/api/1.2/search/Gmail
shows error message as follows:
XML Parsing Error: not well-formed
Location: https://preview.addons.mozilla.org/en-US/firefox/api/1.2/search/Gmail
Line Number 107, Column 1:
API 1.3 URL: FAIL: https://preview.addons.mozilla.org/en-US/firefox/api/1.3/search/Gmail
shows error message as follows:
XML Parsing Error: not well-formed
Location: https://preview.addons.mozilla.org/en-US/firefox/api/1.3/search/Gmail
Line Number 107, Column 1:
Also failed while searching add-on=Outlook
https://preview.addons.mozilla.org/en-US/firefox/api/1.2/search/Outlook
https://preview.addons.mozilla.org/en-US/firefox/api/1.3/search/Outlook
error message:
XML Parsing Error: not well-formed
Line Number 288, Column 1:
Reporter | ||
Comment 2•15 years ago
|
||
Reporter | ||
Updated•15 years ago
|
Summary: XML parsing error while searching in api → XML parsing error while searching in api(1.2/1.3/1.5)
Assignee | ||
Comment 3•15 years ago
|
||
Thanks, I think this enough of a representative sample of this bug. Wait until there's a fix before finding more examples.
No longer blocks: 549500
Summary: XML parsing error while searching in api(1.2/1.3/1.5) → XML parsing error while searching in api
Comment 4•15 years ago
|
||
fwiw, maybe it's a good idea not to render XML "by hand" in a template, but to have it generated from one of Python's xml writers?
Assignee | ||
Comment 5•15 years ago
|
||
Fred,
Point taken. I'll look into using a library.
Comment 6•15 years ago
|
||
In tuxedo, I use minidom:
http://github.com/fwenzel/tuxedo/blob/master/apps/api/views.py#L250
Setting every attribute etc. like this might get tedious though with more complex files, so maybe another library is more handy in your case.
Comment 7•15 years ago
|
||
I wonder if you could spawn a new Jinja environment that will do xml-safe escaping instead of just html escaping? I think that would keep us safe without getting bogged down in minidom. We'd only have to check that the tags we're writing are safe, but that's not hard.
Assignee | ||
Comment 8•15 years ago
|
||
note to self... I've verified all the URLs listed to this point... most of them contain the same addon id=592 which has our "^L"
Whiteboard: [z][r?jbalogh][gh:davedash]
Assignee | ||
Comment 9•15 years ago
|
||
Took jbalogh's approach - seemed to make more sense for now, although I do see a point of having precise xml being delivered.
Status: NEW → ASSIGNED
Assignee | ||
Comment 10•15 years ago
|
||
Fixed for the issue noted in the bug, but some of the urls supplied are giving 500 errors... I suspect that's another issue.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 11•15 years ago
|
||
Verified that no XML parsing errors are seen at-
https://preview.addons.mozilla.org/en-US/firefox/api/1.2/search/we
https://preview.addons.mozilla.org/en-US/firefox/api/1.3/search/you
https://preview.addons.mozilla.org/en-US/firefox/api/1.5/addon/592
https://preview.addons.mozilla.org/en-US/firefox/api/1.2/search/Outlook
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•