<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4857</bug_id>
          
          <creation_ts>2013-07-17 06:29:37 +0000</creation_ts>
          <short_desc>[Hob] After setting SSTATE_MIRRORS, Settings button at image configuration not available</short_desc>
          <delta_ts>2013-10-03 08:47:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Hob</product>
          <component>hob</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frank Fighting71">frank.fighting71</reporter>
          <assigned_to name="Cristiana Voicu">cristiana.voicu</assigned_to>
          <cc>andreea.b.proca</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristian.iorga</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>frank.fighting71</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>valentin.popa</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34626</commentid>
    <comment_count>0</comment_count>
    <who name="Frank Fighting71">frank.fighting71</who>
    <bug_when>2013-07-17 06:29:37 +0000</bug_when>
    <thetext>After setting the SSTATE_MIRRORS in local.conf according to the example,
settings button not available showing below stack trace:

Traceback (most recent call last):
  File &quot;/poky/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py&quot;, line 496, in settings_button_clicked_cb
    response, settings_changed = self.builder.show_simple_settings_dialog()
  File &quot;/poky/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 1258, in show_simple_settings_dialog
    handler = self.handler)
  File &quot;/poky/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py&quot;, line 98, in __init__
    self.create_visual_elements()
  File &quot;/poky/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py&quot;, line 888, in create_visual_elements
    self.nb.append_page(self.create_shared_state_page(), gtk.Label(&quot;Shared state&quot;))
  File &quot;/poky/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py&quot;, line 335, in create_shared_state_page
    sm_list = [&quot;Custom&quot;, sstatemirror_fields[1], sstatemirror_fields[0]]
IndexError: list index out of range

local.conf set SSTATE_MIRRORS as below:

SSTATE_MIRRORS ?= &quot;\
file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
file://.* file:///some/local/dir/sstate/PATH&quot;

Settings button becomes not available, because when create_shared_state_page() in simplesettingsdialog.py,
searched_string was set to &quot;file://&quot; as below:
searched_string = &quot;file://&quot;

The logic to parse each sstate mirrors regex and url is not right, if SSTATE_MIRRORS has this pattern:
file://.* file:///some/local/dir/sstate/PATH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35110</commentid>
    <comment_count>1</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2013-07-29 14:29:36 +0000</bug_when>
    <thetext>merged to master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e28904e1de029a1ba3a19df766d698a31d067161</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37516</commentid>
    <comment_count>2</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2013-10-03 08:47:46 +0000</bug_when>
    <thetext>Verified in master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>