GTG

hamster applet receives incorrect tags

Bug #897703 reported by Richard Klein
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Richard Klein

Bug Description

Trunk version: revno: 1040 revid:<email address hidden>
Affects Hamster Plugin

The error occurs when GTG sets the category from a tag and the current task doesn't have a tag set. GTG crashes with:

Setting XDG vars to use default dataset.
2011-11-29 16:17:54,538 - WARNING - __init__:__init__:77 - Backend backend_mantis could not be loaded: No module named suds.client
Traceback (most recent call last):
  File "/home/ric/gtg/GTG/plugins/hamster/hamster.py", line 244, in browser_cb
    self.sendTask(plugin_api.get_requester().get_task(task_id))
  File "/home/ric/gtg/GTG/plugins/hamster/hamster.py", line 77, in sendTask
    category = gtg_tags[0]
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/ric/gtg/GTG/plugins/hamster/hamster.py", line 244, in browser_cb
    plugin_api.remove_toolbar_item(self.taskbutton)
  File "/home/ric/gtg/GTG/plugins/hamster/hamster.py", line 77, in sendTask
    category = "unsorted"
IndexError: list index out of range

The error occurs as the code on hamster.py Line 77 doesn't check to see that gtg_tags[0] actually exists.

Tags: hamster

Related branches

Richard Klein (kleinric)
description: updated
description: updated
Revision history for this message
Richard Klein (kleinric) wrote :

This bug and #897705 have been fix and are in my linked branch

Changed in gtg:
assignee: nobody → Richard Klein (kleinric)
status: New → Fix Committed
Revision history for this message
Richard Klein (kleinric) wrote :
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → In Progress
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Hi Richard,

Thanks for your cooperation. We don't mark a bug as fixed as long as it is present in trunk. (see https://live.gnome.org/gtg/bugstriaging )

Revision history for this message
Richard Klein (kleinric) wrote :

Hi Lionel & Izidor,

Apologies, I hadn't seen that page. Its the first time I've submitted a bug fix to open source so I'm a little sketchy on the processes.

I'll definitely follow that page in the future.

Thanks,
Richard

Izidor Matušov (izidor)
Changed in gtg:
milestone: none → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
status: In Progress → Fix Committed
importance: Undecided → Medium
Izidor Matušov (izidor)
tags: added: hamster
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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