Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Crash on saving results because of null bytes

#95
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

Reported by Virgil Dupras · April 18th, 2010 @ 09:57 AM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • 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.

    July 14th, 2010 @ 09:06 AM

  2. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    (from [26609a3e57af]) [#95 Crash on saving results because of null bytes state:fixed] Fixed a crash on results save when it contained invalid characters. http://bitbucket.org/hsoft/dupeguru/changeset/26609a3e57af/

    July 14th, 2010 @ 09:19 AM

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.