facebook msgid parsing fails

Bug #1248302 reported by Robert Bruce Park
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Friends
Confirmed
Undecided
Unassigned
friends (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

ERROR Thread-2 2013-10-30 00:33:35,425 friends.utils.base list index out of range
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/friends/utils/base.py", line 159, in run
    super().run()
  File "/usr/lib/python3.3/threading.py", line 594, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/friends/utils/base.py", line 153, in _retval_catcher
    self._success_callback(str(func(*args, **kwargs)))
  File "/usr/lib/python3/dist-packages/friends/protocols/facebook.py", line 197, in receive
    self.home()
  File "/usr/lib/python3/dist-packages/friends/protocols/facebook.py", line 185, in home
    self._get(ME_URL + '/home', 'messages')
  File "/usr/lib/python3/dist-packages/friends/protocols/facebook.py", line 180, in _get
    self._publish_entry(entry, stream=stream)
  File "/usr/lib/python3/dist-packages/friends/protocols/facebook.py", line 124, in _publish_entry
    entry=comment)
  File "/usr/lib/python3/dist-packages/friends/protocols/facebook.py", line 92, in _publish_entry
    post_id = message_id.split('_')[1]
IndexError: list index out of range

This is clearly caused by the fix from https://bugs.launchpad.net/friends/+bug/1185684 so we need a more robust way of parsing that string.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package friends - 0.2.0+14.04.20131108.1-0ubuntu1

---------------
friends (0.2.0+14.04.20131108.1-0ubuntu1) trusty; urgency=low

  [ Ken VanDine ]
  * Undo revert for the default polling frequency and ensure interval is
    set before using it in the timeout. (LP: #1238083, #1248143)

  [ Colin Watson ]
  * Declare all binary packages Multi-Arch: foreign, since they expose
    no architecture-dependent interfaces.

  [ Robert Bruce Park ]
  * More robust handling of Facebook msgids. (LP: #1248302). (LP:
    #1248302)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 242
 -- Ubuntu daily release <email address hidden> Fri, 08 Nov 2013 17:13:24 +0000

Changed in friends (Ubuntu):
status: New → Fix Released
Changed in friends:
assignee: Robert Bruce Park (robru) → nobody
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.