#2367 NORM Untriag: cannot update an entry from a usb stick

Zarro Boogs per Child bugtracker at laptop.org
Sat Jul 21 15:38:45 EDT 2007


#2367: cannot update an entry from a usb stick
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  bcsaller 
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  Untriaged
Component:  datastore  |     Version:           
 Keywords:             |    Verified:  0        
-----------------------+----------------------------------------------------
 Asking the datastore to do the following update:

 {{{
 id: 5e4ce292-05a2-4ee2-8e94-93be5c9fde37
 file: readme
 props: {'activity_id': '',
  'title_set_by_user': '1',
  dbus.String(u'vid'): dbus.Double(1.0, variant_level=1),
  'title': 'Untitled',
  dbus.String(u'mountpoint'): dbus.String(u'8e3fe040-684f-4fa3-965f-
 8a5a734919e7', variant_level=1),
  'activity': '',
  'mtime': '2007-07-21T21:34:26.365612',
  dbus.String(u'mime_type'): dbus.String(u'text/plain', variant_level=1)
 }
 }}}

 causes this exception:

 {{{
   File "/home/tomeu/Activities/journal-
 activity.activity/expandedentry.py", line 234, in _update_title_cb
     datastore.write(self.jobject)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/datastore.py", line 189, in write
     error_handler=error_handler)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/dbus_helpers.py", line 47, in update
     _data_store.update(uid, dbus.Dictionary(properties), filename)
   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 390, in update
     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 342, in get
     content = self.indexmanager.get(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/xapianindex.py", line 318, 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'5e4ce292-05a2-4ee2-8e94-93be5c9fde37')
 not found"
 }}}

 This is preventing the journal to change the title of an entry in an usb
 disk.

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



More information about the Bugs mailing list