#2381 NORM Untriag: cannot retrieve an entry from the DS if it is in a removable device

Zarro Boogs per Child bugtracker at laptop.org
Sun Jul 22 07:16:41 EDT 2007


#2381: cannot retrieve an entry from the DS if it is in a removable device
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  bcsaller          
     Type:  defect     |      Status:  new               
 Priority:  normal     |   Milestone:  Untriaged         
Component:  datastore  |     Version:  Git as of bug date
 Keywords:             |    Verified:  0                 
-----------------------+----------------------------------------------------
 {{{
 DataStore.get_properties('a14032c6-d370-454f-9140-187178c36feb')
 }}}

 when the object with id a14032c6-d370-454f-9140-187178c36feb is in a
 removable device, causes this exception:

 {{{
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/activity/activityfactoryservice.py", line 109,
 in create
     activity = self._constructor(activity_handle)
   File "/home/tomeu/Activities/read-activity.activity/readactivity.py",
 line 43, in __init__
     activity.Activity.__init__(self, handle)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/activity/activity.py", line 240, in __init__
     self._jobject = datastore.get(handle.object_id)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/datastore.py", line 163, in get
     metadata = dbus_helpers.get_properties(object_id)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/dbus_helpers.py", line 55, in
 get_properties
     return _data_store.get_properties(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/dbus/proxies.py", line 135, in __call__
     **keywords)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/dbus/connection.py", line 603, in call_blocking
     message, timeout)
 DBusException: org.freedesktop.DBus.Python.KeyError: Traceback (most
 recent call last):
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/dbus/service.py", line 655, in _message_cb
     retval = candidate_method(self, *args, **keywords)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/datastore.py", line 361, in get_properties
     content = self.get(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/datastore.py", line 338, in get
     c = mp.get(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/backingstore.py", line 344, in get
     content = self.indexmanager.get(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/xapianindex.py", line 322, in get
     doc = self.read_index.get_document(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/secore/searchconnection.py", line 344, in get_document
     raise KeyError('Unique ID %r not found' % id)
 KeyError: "Unique ID dbus.String(u'a14032c6-d370-454f-9140-187178c36feb')
 not found"
 }}}

 That object id was returned by DataStore.find() with the following
 arguments:

 {{{
 {'mountpoints': ['229af270-2461-4574-85d0-caa033ebba8e'],
  'order_by': ['-mtime'],
  'limit': 30}
 }}}

 This prevents resuming entries in usb sticks and copying those to main
 flash.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2381>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list