Ticket #239 (closed defect: fixed)

Opened 3 years ago

Last modified 7 months ago

Calling DBus method remove_plugin raises TypeError exception

Reported by: Alfonso Assigned to: dev
Priority: major Milestone:
Component: Core Version:
Keywords: Cc:

Description

When calling the DBus method remove_plugin a TypeError? exception is raised:

Traceback (most recent call last):

File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.6/dbus/proxies.py", line 140, in call

**keywords)

File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking

message, timeout)

dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError?: Traceback (most recent call last):

File "/var/lib/python-support/python2.6/dbus/service.py", line 745, in _message_cb

_method_reply_return(connection, message, method_name, signature, *retval)

File "/var/lib/python-support/python2.6/dbus/service.py", line 252, in _method_reply_return

reply.append(signature=signature, *retval)

TypeError?: Expected a string or unicode object

To avoid it need to cast the returned object to str or unicode.

Patch attached that cast the result to str (as done in the add_plugin).

Attachments

dbus_service.py.patch (0.6 kB) - added by Alfonso on 02.07.2009 23:30:58.

Change History

02.07.2009 23:30:58 changed by Alfonso

  • attachment dbus_service.py.patch added.

17.09.2009 17:55:46 changed by Alfonso

Fixed in [1364], but incorrectly marked #237 as fixed instead of this bug.

17.09.2009 22:58:35 changed by dev

  • status changed from new to closed.
  • resolution set to fixed.

thx for pointing this out!