My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1688: Gerrit produce too many redirect crash brower at login
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Nov 2012


Sign in to add a comment
 
Reported by kungcst...@gmail.com, Nov 28, 2012
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.5

What steps will reproduce the problem?
1. Load gerrit url, click login and use correct username/password
2. Browser crash with ERR_TOO_MANY_REDIRECTS error

What is the expected output?
It should redirect to front-page after log-in successfully

What do you see instead?
It crash browser with ERR_TOO_MANY_REDIRECTS error, you have to push back button or reload gerrit url to go back to front-page, note that I'm already logged-in after reload gerrit main url.

Please provide any additional information below.
I've set up gerrit in back of lighttpd reverse proxy and use ldap authentication

lighttpd config:
proxy.server = ("/review" => ( "" => ( "host" => "127.0.0.1", "port" => 8081 )),)

gerrit config:
[httpd]
listenUrl = proxy-http://*:8081/review/

I've also try use direct connect to port 8081 (no-proxy) and it has the same result (ERR_TOO_MANY_REDIRECTS) :(


loginredirect_chrome.png
26.5 KB   View   Download
loginredirect_firefox.png
25.6 KB   View   Download
afterreload_chrome.png
27.1 KB   View   Download
Nov 28, 2012
#1 kungcst...@gmail.com
Found the solution:

Refer to http://is.gd/XfhV3L

I have to manual set canonicalWebUrl in gerrit.config

[gerrit]
canonicalWebUrl =http://www.my-server.com/review

But could you please investigate to permanently fix this?

Thanks
Nov 28, 2012
Project Member #2 bklarson@gmail.com
Correctly setting the canonicalWebUrl is the correct (and permanent) fix.
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting