tomboyToHTML converter breaks if unknown entities are in the note - /notes/ OOPS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One Servers |
Fix Released
|
High
|
Rodrigo Moya |
Bug Description
In case any note contains any non lt/gt/amp entity while it is in XML format, the whole /notes/ web UI OOPSes for the user.
The exceptions of this type are now filling our appaserver stderr logs:
Traceback:
File "/home/
86. response = callback(request, *callback_args, **callback_kwargs)
File "/home/
67. return self.view_
File "/home/
30. return func(request, *args, **kwargs)
File "/home/
84. note["content"] = tomboyToHTML(
File "/home/
95. return convert(xml, TomboyXMLParser())
File "/home/
180. for action, elem in context:
Exception Type: XMLSyntaxError at /notes/
Exception Value: Entity 'nbsp' not defined, line 1, column 42
While it is not clear how one can enter entities via our web editor now, that might have been possible to do in the past.
Therefore there should be some kind of protection against this issue. Specifying the set of known entities to the parser might help. However I also see :
XMLSyntaxError: line 17: Entity 'locale' not defined
XMLSyntaxError: line 1: Entity 'Itemid' not defined
XMLSyntaxError: line 1: Entity 'monitor' not defined
XMLSyntaxError: line 1: Entity 'pageNum' not defined
XMLSyntaxError: line 2: Entity 'search' not defined
XMLSyntaxError: line 2: Namespace prefix fb on fan is not defined
XMLSyntaxError: line 54: Entity 'lang' not defined
It looks like those are the parts of some URL that was pasted to the note and it was not properly saved by the server.
visibility: | private → public |
Changed in ubuntuone-servers: | |
importance: | Medium → High |
tags: | added: current-trouble |
Changed in ubuntuone-servers: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-servers: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → In Progress |
Changed in ubuntuone-servers: | |
status: | In Progress → Fix Released |
Changed in ubuntuone-servers: | |
assignee: | Rodrigo Moya (rodrigo-moya) → kennethdurr (kendu0301) |
We need to deal with this after bug #527374 - see https:/ /bugs.launchpad .net/ubuntuone- servers/ +bug/527374/ comments/ 1