#4618 BLOC Never A: sugar-shell-service crashes if fails to read an activity

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 2 16:36:42 EDT 2007


#4618: sugar-shell-service crashes if fails to read an activity
-----------------------+----------------------------------------------------
 Reporter:  tomeu      |       Owner:  tomeu         
     Type:  defect     |      Status:  new           
 Priority:  blocker    |   Milestone:  Never Assigned
Component:  sugar      |     Version:                
 Keywords:  update.1?  |    Verified:  0             
-----------------------+----------------------------------------------------
 Triggered by #4617, with this stack trace:

 {{{
 Traceback (most recent call last):
   File "/usr/bin/sugar-shell-service", line 33, in <module>
     import clipboardservice
   File "/usr/share/sugar/services/shell/clipboardservice.py", line 30, in
 <module>
     from clipboardobject import ClipboardObject, Format
   File "/usr/share/sugar/services/shell/clipboardobject.py", line 23, in
 <module>
     import bundleregistry
   File "/usr/share/sugar/services/shell/bundleregistry.py", line 138, in
 <module>
     _bundle_registry.add_search_path(bundles_path)
   File "/usr/share/sugar/services/shell/bundleregistry.py", line 74, in
 add_search_path
     self._scan_directory(path)
   File "/usr/share/sugar/services/shell/bundleregistry.py", line 95, in
 _scan_directory
     self.add_bundle(dir)
   File "/usr/share/sugar/services/shell/bundleregistry.py", line 99, in
 add_bundle
     bundle = ActivityBundle(bundle_path)
   File "/usr/lib/python2.5/site-packages/sugar/bundle/activitybundle.py",
 line 54, in __init__
     info_file = self._get_file('activity/activity.info')
   File "/usr/lib/python2.5/site-packages/sugar/bundle/bundle.py", line 88,
 in _get_file
     file = open(path)
 IOError: [Errno 13] Permission denied:
 '/usr/share/activities/gmail.activity/activity/activity.info'
 }}}

 I consider this a blocker because installing a malformed bundle can cause
 Sugar to become unusable.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4618>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list