← Back to team overview

gtg team mailing list archive

[Bug 612554] [NEW] Should automatically escape content of task created by plugins

 

Public bug reported:

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

** Affects: gtg
     Importance: Undecided
         Status: New

-- 
Should automatically escape content of task created by plugins
https://bugs.launchpad.net/bugs/612554
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: New

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





Follow ups

References