[Bugs] #4634 Sugar UNSP: bundle_id with space causes most activities to disappear

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Oct 1 16:00:59 EDT 2013


#4634: bundle_id with space causes most activities to disappear
---------------------------------------------+--------------------------
       Reporter:  dsd                        |       Owner:
           Type:  defect                     |      Status:  new
       Priority:  Unspecified by Maintainer  |   Milestone:  Unspecified
      Component:  Sugar                      |     Version:  Unspecified
       Severity:  Unspecified                |    Keywords:
Distribution/OS:  Unspecified                |  Bug Status:  Unconfirmed
---------------------------------------------+--------------------------
\
\
 Edit an activity.info file, adding another word to the bundle_id
 assignment, like:

 {{{
 bundle_id = org.laptop.Log hello
 }}}

 Restart Sugar. Most activities won't appear on the home screen, since
 Sugar has choked on the following exception:

 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/jarabe/desktop/favoritesview.py",
 line 133, in __connect_to_bundle_registry_cb
     info.get_activity_version()):
   File "/usr/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",
 line 312, in is_bundle_favorite
     key = self._get_favorite_key(bundle_id, version)
   File "/usr/lib/python2.7/site-packages/jarabe/model/bundleregistry.py",
 line 118, in _get_favorite_key
     raise ValueError('bundle_id cannot contain spaces')
 ValueError: bundle_id cannot contain spaces
 }}}

 Reproduced on Sugar-0.98 and 0.96.
\
\
\

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


More information about the Bugs mailing list