Crash on saving results because of null bytes
Reported by Virgil Dupras | April 18th, 2010 @ 09:57 AM
Application Identifier: com.hardcoded_software.dupeguru
Application Version: 2.10.0
Traceback (most recent call last):
File "core/app_cocoa_inter.pyc", line 68, in saveResults
File "core/app.pyc", line 327, in save
File "core/results.pyc", line 287, in save_to_xml
File "lxml.etree.pyx", line 634, in lxml.etree._Element.set (src/lxml/lxml.etree.c:33098)
File "apihelpers.pxi", line 488, in lxml.etree._setAttributeValue (src/lxml/lxml.etree.c:14859)
File "apihelpers.pxi", line 1295, in lxml.etree._utf8 (src/lxml/lxml.etree.c:21250)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes
Comments and changes to this ticket
-
Virgil Dupras July 14th, 2010 @ 09:06 AM
- Assigned user set to Virgil Dupras
- State changed from new to accepted
- Milestone order changed from 0 to 0
Ok, what happens is that lxml raises that error not only on null bytes, but on any character that is invalid xml (\x19 for example). Because it's possible to have filenames that contain these characters, I have to wrap the set in a try.
-
Virgil Dupras July 14th, 2010 @ 09:19 AM
- State changed from accepted to fixed
(from [26609a3e57af]) [#95 state:fixed] Fixed a crash on results save when it contained invalid characters. http://bitbucket.org/hsoft/dupeguru/changeset/26609a3e57af/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Tags
Referenced by
- 95 Crash on saving results because of null bytes (from [26609a3e57af]) [#95 state:fixed] Fixed a crash on ...