#2612 NORM Untriag: datastore fails to delete an entry without file

Zarro Boogs per Child bugtracker at laptop.org
Tue Jul 31 14:06:52 EDT 2007


#2612: datastore fails to delete an entry without file
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  bcsaller          
     Type:  defect     |      Status:  new               
 Priority:  normal     |   Milestone:  Untriaged         
Component:  datastore  |     Version:  Git as of bug date
 Keywords:             |    Verified:  0                 
-----------------------+----------------------------------------------------
 If the file name is '', this exception is raised when trying to delete it:

 {{{
 1185905499.5089 ERROR - Traceback (most recent call last):
   File "/home/tomeu/Activities/journal-
 activity.activity/journaltoolbox.py", line 332, in _erase_clicked_cb
     datastore.delete(self._jobject.object_id)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/datastore.py", line 199, in delete
     dbus_helpers.delete(object_id)
   File "/home/tomeu/sugar-
 jhbuild/source/sugar/sugar/datastore/dbus_helpers.py", line 52, in delete
     _data_store.delete(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/dbus/proxies.py", line 136, 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.AttributeError: Traceback (most
 recent call last):
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/dbus/service.py", line 664, 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 432, in delete
     content.backingstore.delete(uid)
   File "/home/tomeu/sugar-jhbuild/build/lib/python2.5/site-
 packages/olpc/datastore/backingstore.py", line 575, in delete
     path = os.path.join(self.uri, path)
   File "posixpath.py", line 60, in join
     if b.startswith('/'):
 AttributeError: 'NoneType' object has no attribute 'startswith'
 }}}

 Don't know if matters, but the file was in an inplace backing store.

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



More information about the Bugs mailing list