<?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>9815</bug_id>
          
          <creation_ts>2016-06-23 08:43:46 +0000</creation_ts>
          <short_desc>SSTATE_MIRRORS does not support http* with basic authentication</short_desc>
          <delta_ts>2016-09-02 17:38:04 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.0.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eilís Ní Fhlannagáin">pidge</reporter>
          <assigned_to name="Stephano Cetola">stephano</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63275</commentid>
    <comment_count>0</comment_count>
    <who name="Eilís Ní Fhlannagáin">pidge</who>
    <bug_when>2016-06-23 08:43:46 +0000</bug_when>
    <thetext>if you add basic auth to the SSTATE_MIRRORS url (and I would imagine others that use fethc) bitbake ignores the mirror: 

Example:

file://.* https://foo.com/sstate/PATH;user=foo:bar;downloadfilename=PATH

fetch fails with a bunch of 401 HEAD methods in apache logs.

But:

file://.* https://foo.com/sstate/PATH;downloadfilename=PATH

passes and uses the mirror.

My guess is that this is happening in checkstatus in wget.py as it looks like it&apos;s not even attempting to use authentication there.

217.103.177.37 - - [23/Jun/2016:08:25:00 +0000] &quot;HEAD /sstate-cache/46/sstate%3Atime%3Acortexa15t2hf-vfp-neon-rdk-linux-gnueabi%3A1.7%3Ar2%3Acortexa15t2hf-vfp-neon%3A3%3A46775fdb5d6752dd3710377408ab3552_package.tgz HTTP/1.1&quot; 401 247 &quot;-&quot; &quot;Python-urllib/2.7&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>