GTG

Should automatically escape content of task created by plugins

Bug #612554 reported by Guillaume Desmottes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Luca Invernizzi

Bug Description

To reproduce:
- Enable to bugzilla plugin
- Paste https://bugzilla.gnome.org/show_bug.cgi?id=624392 to the quick entry
- Try to open the newly created note

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/gtg/GTG/core/datastore.py", line 291, in __write
    self.backend.set_task(task)
  File "/usr/share/gtg/GTG/backends/localfile.py", line 111, in set_task
    t_xml = taskxml.task_to_xml(self.doc, task)
  File "/usr/share/gtg/GTG/tools/taskxml.py", line 98, in task_to_xml
    element = xml.dom.minidom.parseString(tex)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
ExpatError: not well-formed (invalid token): line 31, column 30

Traceback (most recent call last):
  File "/usr/share/gtg/GTG/taskeditor/taskviewserial.py", line 158, in unserialize
    element = xml.dom.minidom.parseString(data)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 31, column 30
Traceback (most recent call last):
  File "/usr/share/gtg/GTG/taskbrowser/browser.py", line 1501, in on_edit_active_task
    self.open_task(tid)
  File "/usr/share/gtg/GTG/taskbrowser/browser.py", line 847, in open_task
    clipboard = self.clipboard)
  File "/usr/share/gtg/GTG/taskeditor/editor.py", line 162, in __init__
    self.textview.insert("%s"%texte)
  File "/usr/share/gtg/GTG/taskeditor/taskview.py", line 244, in insert
    self.buff.deserialize(self.buff, self.mime_type, _iter, text)
glib.GError: Une erreur inconnue est survenue lors de la tentative de décodage de application/x-gtg-task

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Hi Guillaume,
this bug is fixed in trunk. That's great, because I didn't even know it was there :)

Changed in gtg:
status: New → Fix Committed
milestone: none → 0.3
importance: Undecided → Medium
assignee: nobody → Luca Invernizzi (invernizzi)
Changed in gtg:
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.