<?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>10952</bug_id>
          
          <creation_ts>2017-01-23 03:31:00 +0000</creation_ts>
          <short_desc>no_proxy handling has changed</short_desc>
          <delta_ts>2017-07-17 17:15:55 +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>unspecified</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.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denys Dmytriyenko">denis</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>patrick.ohly</cc>
    
    <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>69995</commentid>
    <comment_count>0</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-01-23 03:31:00 +0000</bug_when>
    <thetext>According to the following Wiki page, no_proxy variable takes list of domains in the form of &quot;.example.com&quot; - i.e. with a leading dot:

https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy

It actually used to work fine like that for quite some time (past few years) - we&apos;ve been using SSTATE_MIRRORS inside a local network behind a proxy, that had its domain listed in no_proxy variable with a leading dot.

Something has changed recently and the only change I can think of is that build machines were upgraded from Ubuntu 16.04 to 16.04.1 - SSTATE_MIRRORS stopped working. Debugging showed that it would fail to resolve the URL, even though running manual wget command with the same URL would work.

Then I stumbled upon the original World Wide Web Consortium page about proxy variables and noticed that no_proxy actually takes a list of domains WITHOUT leading dots:

https://www.w3.org/Daemon/User/Proxies/ProxyClients.html

Sure enough, making the change to no_proxy variable to list &quot;example.com&quot; w/o a dot fixed SSTATE_MIRRORS!

I&apos;m guessing some Python library in Ubuntu 16.04.1 got updated and it&apos;s now more strict to how it parses no_proxy variable, but I haven&apos;t looked that far yet, sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70468</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-07 13:14:28 +0000</bug_when>
    <thetext>Thanks for the report Denys. Sounds like we should just update the wiki page to use the correct syntax as defined by the W3C?

If you don&apos;t have a wiki account I can take care of that for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70784</commentid>
    <comment_count>2</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-02-17 00:44:28 +0000</bug_when>
    <thetext>Joshua, I&apos;d like someone to first verify and confirm my finding before actually changing the documentation. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70809</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-17 14:34:59 +0000</bug_when>
    <thetext>Denys, it took me a while to set up an environment to test but I can confirm that with a no_proxy variable with domains of the form &quot;.example.com&quot; bitbake fails to fetch from my shared state mirror on my corporate network, with a no_proxy variable with domains of the form &quot;example.com&quot; objects are fetched and used from the shared state mirror.

Testing was performed with a Fedora 25 build machine</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71004</commentid>
    <comment_count>4</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-03-01 03:35:58 +0000</bug_when>
    <thetext>Thanks for the confirmation! Should documentation now be updated accordingly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71016</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-01 11:04:03 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Thanks for the confirmation! Should documentation now be updated accordingly?

I inferred that you were going to edit the wiki, could you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71049</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-02 16:50:30 +0000</bug_when>
    <thetext>Wiki page updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71051</commentid>
    <comment_count>7</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2017-03-02 17:20:18 +0000</bug_when>
    <thetext>Thanks!

I wonder if more explicit statement about not using leading dot is needed on the page itself, similar to what is said in change log...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75075</commentid>
    <comment_count>8</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-07-17 17:15:55 +0000</bug_when>
    <thetext>Leading dot will be supported again in some versions of Python - see https://bugs.python.org/issue29142</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>