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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>135556</bug_id>
          
          <creation_ts>2014-08-03 22:59:38 -0700</creation_ts>
          <short_desc>[jhbuild] Make jhbuild modules use https protocol instead of git</short_desc>
          <delta_ts>2016-03-09 12:28:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vivek Galatage">vivekg</reporter>
          <assigned_to name="Vivek Galatage">vivekg</assigned_to>
          <cc>laszlo.gombos</cc>
    
    <cc>mrobinson</cc>
    
    <cc>ostap73</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1026597</commentid>
    <comment_count>0</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2014-08-03 22:59:38 -0700</bug_when>
    <thetext>Some corporate firewalls block the usage of git protocol.
Making the git repository URLs using &quot;https&quot; protocol instead of &quot;git&quot; fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026598</commentid>
    <comment_count>1</comment_count>
      <attachid>235964</attachid>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2014-08-03 23:03:38 -0700</bug_when>
    <thetext>Created attachment 235964
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026817</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-08-05 00:37:14 -0700</bug_when>
    <thetext>Have you asked your network admins about this?

Perhaps there&apos;s a less invasive way to use http instead of git by locally configuring your jhbuild setup?

If possible I&apos;d like to keep using git protocol by default because it&apos;s more efficient, see also http://git-scm.com/book/en/Git-on-the-Server-The-Protocols</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026833</commentid>
    <comment_count>3</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2014-08-05 05:23:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Have you asked your network admins about this?
&gt; 

Yes and the IT dept is saying it will not be enabled for git as such.

&gt; Perhaps there&apos;s a less invasive way to use http instead of git by locally configuring your jhbuild setup?

Any pointers on how to do it? Also is there a way to specifiy multiple URLs (fallback ones) in jhbuild.modules? This way we could always keep the first one to be git one and then https one based on priority and availability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026834</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-08-05 05:31:39 -0700</bug_when>
    <thetext>Have you tried this approach? 

http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026851</commentid>
    <comment_count>5</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2014-08-05 08:45:23 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Have you tried this approach? 
&gt; 
&gt; http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/

Sure, I will try this tomorrow once in office. Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027438</commentid>
    <comment_count>6</comment_count>
    <who name="Vivek Galatage">vivekg</who>
    <bug_when>2014-08-07 00:34:20 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; Have you tried this approach? 
&gt; &gt; 
&gt; &gt; http://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/
&gt; 
&gt; Sure, I will try this tomorrow once in office. Thank you.

I found a past relevant dicussion here [1]. Unfortunately, the socat method outlined in the above URL didn&apos;t work inside the office environment. Looks like the base requirement of port 9418 being open by proxy is not met.

Its not a really hard to patch this locally and get the source repos using https. 
But ideally, if jhbuild could support multiple repo URLs (for fallback), this wouldn&apos;t repeat time and time again.

[1] https://lists.webkit.org/pipermail/webkit-gtk/2013-October/001599.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1172680</commentid>
    <comment_count>7</comment_count>
      <attachid>235964</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2016-03-09 12:28:49 -0800</bug_when>
    <thetext>Comment on attachment 235964
Patch

I think we are going to pass on this for the moment, given Philippe&apos;s comments about efficiency.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235964</attachid>
            <date>2014-08-03 23:03:38 -0700</date>
            <delta_ts>2016-03-09 12:28:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-135556-20140804113320.patch</filename>
            <type>text/plain</type>
            <size>2489</size>
            <attacher name="Vivek Galatage">vivekg</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTcxOTg1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYzU4N2QwOGY3ZWIxZDYyMzc2ZjExMWVhOTNlMmU1NTAx
MzFlYzU1My4uYzhjNTExNDI2Y2QwZTIwMTczMDJkN2FmZDliYWM3ZTdmZDRhZWQ4NiAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwz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sZC9qaGJ1
aWxkLXdyYXBwZXIKaW5kZXggYmYyMjdkZjJmYWE2MmNjNzA0YmVhYjNjZjI1MmJiZjM5NTUxNzI1
Mi4uM2E2N2VlOTY2YzQyZGJkNDRkZTZmMjUwNWYzNDA2ODYzY2I4ZTc0YyAxMDA3NTUKLS0tIGEv
VG9vbHMvamhidWlsZC9qaGJ1aWxkLXdyYXBwZXIKKysrIGIvVG9vbHMvamhidWlsZC9qaGJ1aWxk
LXdyYXBwZXIKQEAgLTY5LDcgKzY5LDcgQEAgZGVmIGNsb25lX2poYnVpbGQoKToKICAgICBpZiBu
b3Qgb3MucGF0aC5leGlzdHMoaW5zdGFsbGF0aW9uX3ByZWZpeCk6CiAgICAgICAgIG9zLm1ha2Vk
aXJzKGluc3RhbGxhdGlvbl9wcmVmaXgpCiAKLSAgICBwcm9jZXNzID0gc3VicHJvY2Vzcy5Qb3Bl
bihbJ2dpdCcsICdjbG9uZScsICdnaXQ6Ly9naXQuZ25vbWUub3JnL2poYnVpbGQnXSwgY3dkPXNv
dXJjZV9wYXRoKQorICAgIHByb2Nlc3MgPSBzdWJwcm9jZXNzLlBvcGVuKFsnZ2l0JywgJ2Nsb25l
JywgJ2h0dHBzOi8vZ2l0Lmdub21lLm9yZy9icm93c2UvamhidWlsZCddLCBjd2Q9c291cmNlX3Bh
dGgpCiAgICAgcHJvY2Vzcy53YWl0KCkKICAgICBpZiBwcm9jZXNzLnJldHVybmNvZGUgIT0gMDoK
ICAgICAgICAgcmFpc2UgRXhjZXB0aW9uKCdqaGJ1aWxkIGdpdCBjbG9uZSBmYWlsZWQgd2l0aCBy
ZXR1cm4gY29kZTogJWknICUgcHJvY2Vzcy5yZXR1cm5jb2RlKQo=
</data>
<flag name="review"
          id="260552"
          type_id="1"
          status="-"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>