GNOME Bugzilla – Bug 776217
https:// http:// and git:// all throwing error in gnome-buiilder3.22.3 clone page
Last modified: 2017-02-15 04:19:00 UTC
Created attachment 342129 [details] above shows the error git clone not working in gb3.22.3
How have you installed Builder (from source, jhbuild, packages, flatpak?) On what distribution?
Using gnome-builder master built from jhbuild, I also get the 403 error when trying to clone git.gnome.org/browse/gnome-music via https:// or http:// (I can't get git:// to work for that repo even from the command line). However, cloning github.com/mwleeds/android-malware-analysis from Builder works with https://, http://, and git://. So perhaps it's something specific to git.gnome.org? I did notice that there's an extra forward slash after git.gnome.org when I go to the URL in firefox; not sure if that's relevant. I checked my ~/.gitconfig and the line that translates https:// into ssh://git@ is commented out, so that can't be the issue.
(In reply to Christian Hergert from comment #1) > How have you installed Builder (from source, jhbuild, packages, flatpak?) On > what distribution? i have installed gb using flatpak over gnome-buntu 16.10 .
I came across this problem and looking forward to resolve it . Developers please help me out. (how can i using flatpak as i have also gb using jhbuild but the master has given me with 3.20.4 .It might be as i built 3 weeks ago .)
Same for me, everything look fine from Builder side, i have let a message to #sysadmin in case
After investigation, seems that libgit2 use a user agent "git/1.0", blocked by your server config: https://infrastructure.gnome.org/browse/puppet/tree/modules/httpd/files/sites.d/git.gnome.org.conf#n81 I have tried using in Builder: git_libgit2_opts (GIT_OPT_SET_USER_AGENT, "git/1.6.6"); but it's only a way to append to the existing string so i get: "git/1.0 (git/1.6.6)" still matching the bad agent regex What i can't understand is why it happen now, there's no recent changes on the server config, nor libgit2
Created attachment 342224 [details] libgit2 user agent original
Created attachment 342225 [details] libgit2 user agent changed
from #sysadmin: <ovitters> slaf: inefficient clients are blocked, efficient clients are allowed <ovitters> slaf: if one connection is opened and then everything is done, it is efficient. old clients opened thousands of connections It's clear that libgit2 should update their user agent version
ho, i have forgotten: You can use git:// protocol, it works like: git://git.gnome.org/gnome-calendar (so without the /browse part)
(In reply to sébastien lafargue from comment #10) > ho, i have forgotten: > > You can use git:// protocol, it works like: > git://git.gnome.org/gnome-calendar (so without the /browse part) and also everything works fine for github.com i mean to say https://github.com/---.git
I've updated the flatpak builds to patch libgit2 so that it says "git/1.7" instead of "git/1.0". I've also talked to the libgit2 maintainer, and it sounds like we might get an update of the version string in the next RC.
This appears to have been fixed by https://github.com/libgit2/libgit2/commit/fafafb1f37d21ebf4b0bbf02651b910d842cfe27 so once we upgrade to v0.25.1 we can drop the patch.
This has been fixed by commit c1489fd8d and commit 14cc0f65d