<?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>11944</bug_id>
          
          <creation_ts>2017-08-17 18:58:04 +0000</creation_ts>
          <short_desc>[morty] Using an HTTP premirror for svn+https URI causes fatal wget failure</short_desc>
          <delta_ts>2017-08-31 14:47:11 +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.2.2</version>
          <rep_platform>All</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>major</bug_severity>
          <target_milestone>2.2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Anders">rob.anders</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>75962</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Anders">rob.anders</who>
    <bug_when>2017-08-17 18:58:04 +0000</bug_when>
    <thetext>The following is basically just a request to cherry-pick commit f46846dc118a3132eee5aeddb43570b8343afc0a to the morty branch.

Preconditions/Environment
-------------------------
Yocto 2.2

Triggering Action/Cause
-----------------------
Recipe contains an svn SRC_URI with protocol=https and user/pswd fields provided (example):
SRC_URI = &quot;svn://chisop60.americas.nsn-net.net/isource/svnroot/${SVN_PATH};module=${PV};user=XXXXX;pswd=XXXXX;protocol=https;name=svn&quot;

HTTP premirror is configured for svn (example):
PREMIRRORS += &quot;svn://.*/.*     http://www.americas.nsn-net.net/~omp/yocto-downloads/ \n&quot;

Expectation
-----------
Premirror download should be attempted and should either succeed or else fail silently and continue to svn download

Actual Result
-------------
Task fails with following error:
File: &apos;/var/fpwork/maslanka/morty/nsn-yocto/poky/bitbake/lib/bb/fetch2/wget.py&apos;, lineno: 113, function: download
     0109:            fetchcmd += &quot; -O &quot; + dldir + os.sep + ud.localfile
     0110:
     0111:        if ud.user:
     0112:            up = ud.user.split(&quot;:&quot;)
*** 0113:            fetchcmd += &quot; --user=%s --password=%s --auth-no-challenge&quot; % (up[0],up[1])
     0114:
     0115:        uri = ud.url.split(&quot;;&quot;)[0]
     0116:        if os.path.exists(ud.localpath):
     0117:            # file exists, but we didnt complete it.. trying again..
Exception: IndexError: list index out of range


Reproducibility
---------------
10/10

This issue was introduced by
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/fetch2/wget.py?id=46bad463ef99db9f237723614c5de01f89d5e54f
and is fixed by
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/fetch2/wget.py?id=f46846dc118a3132eee5aeddb43570b8343afc0a

Unfortunately, the morty branch contains commit 46bad463 but is missing f46846d.  Request a cherry-pick of f46846d to morty branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76130</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-24 15:14:16 +0000</bug_when>
    <thetext>cherry-picked</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76398</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2017-08-31 14:47:11 +0000</bug_when>
    <thetext>in morty

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=morty&amp;id=88ad6d975e5965b54b97fced8323a55c39d8a9f1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>