Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 397810

Summary: Redirect http://git.eclipse.org/r to https://git.eclipse.org/r
Product: Community Reporter: Matthias Sohn <matthias.sohn>
Component: GerritAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Matthias Sohn CLA 2013-01-09 16:24:37 EST
It seems that http://git.eclipse.org/r isn't served by Gerrit (but https://git.eclipse.org/r is) which is confusing users with strange error messages when they are trying to clone a git repository over http://git.eclipse.org/r [1].

In order to avoid this confusion we should try to redirect to https, I think native git supports redirects though I am not sure if jgit will follow redirects. So let me know when redirect has been configured then I will give it a try.

[1] http://www.eclipse.org/forums/index.php/m/998348/#msg_998348
Comment 1 Eclipse Webmaster CLA 2013-02-05 16:04:20 EST
We already are re-writing HTTP requests for http://git.eclipse.org/r to HTTPS.  

This seems to work as I expect via FF and wget both locally and remote.

However this page: http://lists-archives.com/git/666394-git-aware-http-transport.html indicates that JGit expects a 302/303 response.  I've updated the apache configs to return that instead of a 301.

Let me know if this needs more work.

-M
Comment 2 Denis Roy CLA 2013-03-22 11:29:37 EDT
Looks good from here.