[Bugs] #1046 UNSP: Traceback while trying to delete no-data .xo Journal entry

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Mon Jul 13 12:52:28 EDT 2009


#1046: Traceback while trying to delete no-data .xo Journal entry
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  tomeu            
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.86             
   Component:  sugar                      |        Version:  Git as of bugdate
    Severity:  Major                      |       Keywords:                   
Distribution:  Unspecified                |   Status_field:  New              
------------------------------------------+---------------------------------
 While trying do delete a Journal entry that has no data associated with it
 ("data" does not exist) and "should" contain a .xo, I get the following
 traceback:

 {{{
 1247503556.186785 DEBUG root: get_file asked for entry with id
 dbus.ByteArray('7c20578d-9be7-4a05-af83-0dbe7f172518', variant_level=1)
 1247503556.195226 DEBUG root: TempFilePath created '/tmp/tmpFoumNG'
 Traceback (most recent call last):
   File "/home/sugar/sugar-jhbuild/install/lib/python2.5/site-
 packages/jarabe/journal/palettes.py", line 139, in __erase_activate_cb
     bundle = misc.get_bundle(self._metadata)
   File "/home/sugar/sugar-jhbuild/install/lib/python2.5/site-
 packages/jarabe/journal/misc.py", line 102, in get_bundle
     return ActivityBundle(file_path)
   File "/home/sugar/sugar-jhbuild/install/lib/python2.5/site-
 packages/sugar/bundle/activitybundle.py", line 48, in __init__
     Bundle.__init__(self, path)
   File "/home/sugar/sugar-jhbuild/install/lib/python2.5/site-
 packages/sugar/bundle/bundle.py", line 68, in __init__
     self._zip_file = zipfile.ZipFile(self._path)
   File "/usr/lib/python2.5/zipfile.py", line 346, in __init__
     self._GetContents()
   File "/usr/lib/python2.5/zipfile.py", line 366, in _GetContents
     self._RealGetContents()
   File "/usr/lib/python2.5/zipfile.py", line 376, in _RealGetContents
     endrec = _EndRecData(fp)
   File "/usr/lib/python2.5/zipfile.py", line 133, in _EndRecData
     fpin.seek(-22, 2)               # Assume no archive comment.
 IOError: [Errno 22] Invalid argument
 }}}

 I've not been able to reproduce the bug that produced this entry, but
 Journal shouldn't crash on it anyway (there's no reason for datastore to
 consider the entry invalid, so any activity is free to produce something
 like this).

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/1046>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list