My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1837: LDAP login redirect loop
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Mar 2013


Sign in to add a comment
 
Reported by gavinswa...@gmail.com, Mar 20, 2013
Affected Version: 2.5.2

What steps will reproduce the problem?
1. Login via LDAP

What is the expected output? What do you see instead?
Expect: End up at the gerrit home page
Get: redirect loop: http://<gerritsite>/login/q/null#/q/null

Please provide any additional information below.
Mar 20, 2013
#1 sop@google.com
Set gerrit.canonicalWebUrl in your gerrit.config file, and restart the server.
Status: WontFix
Mar 20, 2013
#2 gavinswa...@gmail.com
I have the canonicalWebUrl set. The <gerritsite> part reads as the correct address.
Mar 20, 2013
#3 sop@google.com
No the server is not reading canonicalWebUrl.
If it was set you wouldn't have null#q/null showing up in the URL.

<gerritsite> being correct in the URL is happening because your browser fixed up a bad redirect by assuming its to the same host.
Mar 20, 2013
#4 gavinswa...@gmail.com
Apparently I can't spell. I had the cononicalWebUrl line in the config file but it's not the same as canonicalWebUrl.
Mar 20, 2013
Project Member #5 bklarson@gmail.com
I wonder if it would be very hard to add a web header to the Gerrit UI with a warning message that says something like 'Hey Admin!  You haven't set gerrit.canonicalWebUrl!'... this is a fairly common issue.

I'd be interested in doing this, but I haven't had time for fun Gerrit projects recently, much less this :(
Mar 20, 2013
#6 sop@google.com
Its actually a bug in init. We should just make sure init always sets it.
Sign in to add a comment

Powered by Google Project Hosting