Multiple files with the same name cause errors

Bug #295702 reported by Martin Owens
2
Affects Status Importance Assigned to Milestone
Central Services
Confirmed
Critical
Martin Owens

Bug Description

Files which have the same name, but different extensions will be added with the same keys in UDS. this causes a dbus error.

Adding By Signal /Data/Galleries/Graphics/Default/terrainformat
Traceback (most recent call last):
  File "/home/doctormo/Projects/python/coisas/examples/gtktreeview.py", line 83, in item_selected_signal
    return self.itemSelected( self._model[iter][0] )
  File "./galleries.py", line 101, in itemSelected
    self._display_gallery( item )
  File "/home/doctormo/Projects/python/coisas/examples/gtktreeview.py", line 61, in replace
    self.add(object)
  File "./galleries.py", line 108, in add
    for image in target.children():
  File "/home/doctormo/Projects/python/coisas/examples/wrappers.py", line 65, in children
    for address in self._dbus.list():
  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/service.py", line 696, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/home/doctormo/Projects/python/coisas/Coisas/base.py", line 122, in list
    self.generate_list()
  File "/home/doctormo/Projects/python/coisas/Coisas/plugins/galleries/local.py", line 77, in generate_list
    FileImage(id, path, parent=self)
  File "/home/doctormo/Projects/python/coisas/Coisas/plugins/galleries/local.py", line 84, in __init__
    super(FileImage, self).__init__(id, **args)
  File "/home/doctormo/Projects/python/coisas/Coisas/base.py", line 47, in __init__
    return super(BusObjectBase, self).__init__( session_bus, self.address )
  File "/var/lib/python-support/python2.5/dbus/service.py", line 477, in __init__
    self.add_to_connection(conn, object_path)
  File "/var/lib/python-support/python2.5/dbus/service.py", line 568, in add_to_connection
    self._fallback)
KeyError: "Can't register the object-path handler for '/Data/Galleries/Graphics/MetaFormat/showlove': there is already a handler"

Martin Owens (doctormo)
Changed in coisas:
assignee: nobody → Martin Owens (doctormo)
importance: Undecided → Critical
status: New → Confirmed
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.