tags in subtask subject lines seem to cause problems

Bug #669479 reported by Sean G on 2010-11-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!

Bug Description

I had a brand-new install of GTG, and I created a task and three subtasks. One of the subtasks had a tag in the subject line. I could not open nor reorder this subtask. When I deleted the subtask and recreated it, it seemed to then work fine.

Note: The parent task was created via the Quick Entry field, and it has a tag in the subject line as well.

v0.2.4, Ubuntu 10.10.

Lionel Dricot (ploum) wrote :

There's indeed a problem with tag in title, we should investigate that

Changed in gtg:
importance: Undecided → High
status: New → Confirmed
milestone: none → 0.3
Izidor Matušov (izidor) wrote :

Steps to reproduce:
1. Create a task 'Lunch'
2. Create a subtask for it called '@buy Milk'
3. Open and close an editor of 'Lunch' task few times

After a while the task editor can't be opened and there is a traceback in terminal:

Traceback (most recent call last):
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/editor/taskviewserial.py", line 159, in unserialize
    success = self.parsexml(content_buf, ite, element.firstChild)
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/editor/taskviewserial.py", line 208, in parsexml
    text = n.firstChild.nodeValue
AttributeError: 'NoneType' object has no attribute 'nodeValue'
Traceback (most recent call last):
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/browser/browser.py", line 1041, in on_edit_active_task
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/manager.py", line 177, in open_task
    clipboard = self.clipboard)
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/editor/editor.py", line 130, in __init__
  File "/home/izidor/projekte/gtg/gtg/GTG/gtk/editor/taskview.py", line 269, in insert
    self.buff.deserialize(self.buff, self.mime_type, _iter, text)
glib.GError: Unknown error when trying to deserialize application/x-gtg-task

Xuan (Sean) Hu (huxuan) wrote :

by diff the auto save data, the error seems to occour when Parse Parent Tasks content.

By open the editor of parent task, it brings tag in the subtask's title into parent task.
By close the editor of parent task, It brings a node with name 'tag' but value None in parent task's content.

This should be the work of "Task Editor Rework", and I have add it to the wiki page.


Izidor Matušov (izidor) on 2012-07-18
Changed in gtg:
milestone: 0.3 → 0.4
Izidor Matušov (izidor) on 2015-03-15
tags: added: github
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers