telepathy-butterfly crashed with UnicodeEncodeError in b64encode()

Bug #459879 reported by Id2ndR
98
This bug affects 15 people
Affects Status Importance Assigned to Milestone
telepathy-butterfly
Fix Released
Medium
telepathy-butterfly (Ubuntu)
Fix Released
Medium
Unassigned
Declined for Karmic by Sebastien Bacher

Bug Description

Binary package hint: telepathy-butterfly

This occured when I tried to send an offline message on msn protocol.

ProblemType: Crash
Architecture: amd64
CheckboxSubmission: 1085bd3e1d3dc5fdefc443fc7f3687c2
CheckboxSystem: f78c696d4c0399fa91f9da1b540d7fd0
Date: Sat Oct 24 18:44:04 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: telepathy-butterfly 0.5.2-0ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
ProcEnviron:
 SHELL=/bin/bash
 LANG=fr_FR.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
SourcePackage: telepathy-butterfly
Title: telepathy-butterfly crashed with UnicodeEncodeError in b64encode()
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Id2ndR (id2ndr) wrote :
tags: removed: need-duplicate-check
Revision history for this message
In , Olivier Le Thanh Duong (olethanh) wrote :

empathy/(null)-DEBUG: 1,256407e+09: empathy_tp_chat_send: Sending message: ma soirée c'est bien déroulé
empathy/(null)-DEBUG: 1,256407e+09: tp_chat_send_cb: Error: org.freedesktop.DBus.Python.UnicodeEncodeError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/home/olivier/Projects/telepathy-butterfly/butterfly/channel/text.py", line 104, in Send
    self._oim_box_ref().send_message(self._offline_contact, text)
  File "/usr/lib/pymodules/python2.6/papyon/util/decorator.py", line 111, in new_function
    func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/papyon/service/OfflineIM/offline_messages_box.py", line 327, in send_message
    sm()
  File "/usr/lib/pymodules/python2.6/papyon/service/OfflineIM/scenario/base.py", line 31, in __call__
    return self.execute()
  File "/usr/lib/pymodules/python2.6/papyon/service/OfflineIM/scenario/send_message.py", line 56, in execute
    self.__msg)
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 109, in method
    None, *self._tokens)
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 155, in RequestMultipleSecurityTokens
    errback, [], (requested_services, response_tokens))
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 198, in _HandleRequestMultipleSecurityTokensResponse
    callback[0](result, *callback[1:])
  File "/usr/lib/pymodules/python2.6/papyon/service/SingleSignOn.py", line 104, in sso_callback
    func(object, user_callback, user_errback, *user_args, **user_kwargs)
  File "/usr/lib/pymodules/python2.6/papyon/service/OfflineIM/oim.py", line 45, in Store2
    content = self.__build_mail_data(session_id, message_number, message_content)
  File "/usr/lib/pymodules/python2.6/papyon/service/OfflineIM/oim.py", line 94, in __build_mail_data
    mail_data += base64.b64encode(content)
  File "/usr/lib/python2.6/base64.py", line 53, in b64encode
    encoded = binascii.b2a_base64(s)[:-1]
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)

visibility: private → public
Changed in telepathy-butterfly:
status: Unknown → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could be fixed in 0.5.3

Changed in telepathy-butterfly (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in telepathy-butterfly (Ubuntu):
status: Triaged → Fix Committed
status: Fix Committed → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
In , Olivier Le Thanh Duong (olethanh) wrote :

Fixed in telepathy butterfly 0.5.3

Changed in telepathy-butterfly:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in lucid now

Changed in telepathy-butterfly (Ubuntu):
status: Fix Committed → Fix Released
Changed in telepathy-butterfly:
importance: Unknown → Medium
Changed in telepathy-butterfly:
importance: Medium → Unknown
Changed in telepathy-butterfly:
importance: Unknown → Medium
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.