<?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>5996</bug_id>
          
          <creation_ts>2014-03-18 14:45:36 +0000</creation_ts>
          <short_desc>The &quot;URI(s) searched&quot; information in the task details page is empty</short_desc>
          <delta_ts>2014-04-17 03:02:34 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>All</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>Yuan.Sun2</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>41377</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-18 14:45:36 +0000</bug_when>
    <thetext>I believe this should be the content of the SSTATE_MIRRORS variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41436</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-19 15:55:15 +0000</bug_when>
    <thetext>David, assigning this one to you quite randomly: feel free to pass it onto someone else if needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41659</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-25 05:43:43 +0000</bug_when>
    <thetext>Hi Belen,

1) First of all, the current code is trying to display &quot;task.path_to_sstate_obj&quot; and &quot;task.work_directory&quot;, both of which appear to be empty in the database.

This appears to be a backend defect, not a GUI defect. Are these obsolete fields, or just not populated?

2) You mentioned the config var &quot;SSTATE_MIRRORS&quot;?

There is no such value in the database. The closest is &quot;SSTATE_DIR&quot; ( which is &quot;/home/abc/toaster_1_6/build/sstate-cache&quot; in my database).

Should perhaps the task page show this?

  The name of the file searched... = basename(SSTATE_DIR)
  The locations where the above file was searched... = dirname(SSTATE_DIR)

I do not see a list of mirrors, unless SSTATE_DIR is really a list of paths, where the cache file name is the same (&quot;sstate-cache&quot;) and the paths perhaps many?

  The name of the file searched... = basename(SSTATE_DIR[0])
  The locations where the above file was searched... = split(SSTATE_DIR,&apos;:&apos;) | sed -e &quot;s|/sstate-cache||g&quot;

- David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41669</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-25 10:22:58 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Belen,
&gt; 
&gt; 1) First of all, the current code is trying to display
&gt; &quot;task.path_to_sstate_obj&quot; and &quot;task.work_directory&quot;, both of which appear to
&gt; be empty in the database.
&gt; 
&gt; This appears to be a backend defect, not a GUI defect. Are these obsolete
&gt; fields, or just not populated?

task.path_to_sstate_obj is what the &quot;File searched for&quot; item should be set to. It is indeed empty, but I believe Alex is on his way to bringing it in (bug 5252). task.workdirectoy is a different thing (is supposed to show the code executed by a certain task), and we have moved it to 1.7 (bug 5255).

&gt; 
&gt; 2) You mentioned the config var &quot;SSTATE_MIRRORS&quot;?

Mmm, maybe I understood Alex wrong. It might be an idea to ping him to clarify. 


&gt; 
&gt; There is no such value in the database. The closest is &quot;SSTATE_DIR&quot; ( which
&gt; is &quot;/home/abc/toaster_1_6/build/sstate-cache&quot; in my database).
&gt; 
&gt; Should perhaps the task page show this?
&gt; 
&gt;   The name of the file searched... = basename(SSTATE_DIR)
&gt;   The locations where the above file was searched... = dirname(SSTATE_DIR)
&gt; 
&gt; I do not see a list of mirrors, unless SSTATE_DIR is really a list of paths,
&gt; where the cache file name is the same (&quot;sstate-cache&quot;) and the paths perhaps
&gt; many?
&gt; 
&gt;   The name of the file searched... = basename(SSTATE_DIR[0])
&gt;   The locations where the above file was searched... = split(SSTATE_DIR,&apos;:&apos;)
&gt; | sed -e &quot;s|/sstate-cache||g&quot;
&gt; 
&gt; - David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41778</commentid>
    <comment_count>4</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-03-26 16:19:46 +0000</bug_when>
    <thetext>Re-assigning to Alex for his review of the issues and backend.

My database has no &quot;SSTATE_MIRRORS&quot; value, but that may be because there are none in my project setup.

There is a &quot;SSTATE_DIR&quot; entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41780</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-03-26 16:51:08 +0000</bug_when>
    <thetext>Just to clarify, the &quot;URI(s) searched&quot; field should show all the locations where the sstate object was searched, which I guess means SSTATE_DIR and SSTATE_MIRRORS (if any have been set up).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42121</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-04-02 08:14:12 +0000</bug_when>
    <thetext>Reassiging to David,

Belen is correct, we need to display
SSTATE_DIR 
SSTATE_MIRRORS, processed; 

The processing part of the SSTATE_MIRRORS is:
 * each entry is separated by new-line
 * we need to take the second field from each entry, where the fields are separated by spaces


Hope this helps,
Alex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42473</commentid>
    <comment_count>7</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2014-04-09 23:12:07 +0000</bug_when>
    <thetext>commit efa4a98fe4cea73fb8709d205230046e2a546bbf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42709</commentid>
    <comment_count>8</comment_count>
    <who name="Yuan Sun">Yuan.Sun2</who>
    <bug_when>2014-04-17 03:02:34 +0000</bug_when>
    <thetext>Verified in ea90bd054c449a8e19c474c8bfa8c289f692c33f.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>