Graceful exit on XML SyntaxError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Medium
|
Unassigned |
Bug Description
Imported: http://
Reason: Review Issue
further details: https:/
msg781 (view) Author: netmask Date: 2006-10-16.17:01:50
Another error mesage:
error: Invalid XML file:
error:
/var/lib/
error:
/http://
error: mismatched tag: line 11, column 2
msg758 (view) Author: netmask Date: 2006-10-08.17:19:30
(This is a followup ticket for future reference. i.e. TODO)
On channels based on XML files, when there is a syntax error or corrupted file,
Smart exists with the following error:
File "/usr/lib/
346, in parseFilesList
for event, elem in cElementTree.
File "<string>", line 64, in __iter__
SyntaxError: not well-formed (invalid token): line 479344, column 58
We need to find a better way of exiting with a more descriptive error message.
The first proposed solution is to catch the error on a try statement, erase the
erroneous metadata and rebuild the cache without it.
Other suggestions, or patches, are welcome.
Changed in smart: | |
importance: | Undecided → Medium |