Issue 2990: Sign In redirect fails when behind reverse proxy.
Status:  Released
Owner:
Closed:  Nov 2014
Reported by dm...@transitlabs.net, Oct 27, 2014
************************************************************
***** 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:

What steps will reproduce the problem?
1.Running Gerrit 2.9 with reverse proxy to http://host/gerrit/
2.Upgrade to Gerrit 2.10-rc0
3.Click 'Sign In' link.
4.404 not found. 

What is the expected output? What do you see instead?
The 'Sign In' link should direct to http://host/gerrit/login but instead redirects to http://host/login

Please provide any additional information below.

Oct 30, 2014
#1 icee...@googlemail.com
I can reproduce this with two settings on current master:

1) gerrit.canonicalWebUrl = http://some.host:8088/review
   httpd.listenUrl = http://*:8088/review
2) gerrit.canonicalWebUrl = http://some.host:8088/review
   httpd.listenUrl = http-proxy://*:8088/review 

Both result in a redirect to 
  http://some.host:8088/login/%23%2Fq%2Fstatus%3Aopen


So the '/review' part is missing here.

Oct 30, 2014
#2 icee...@googlemail.com
It seems like 71891446a5f05fd9b015236144c206ac70043f21 did introduce the problems.
Oct 30, 2014
Project Member #3 huga...@gmail.com
Actually, login redirect is broken if gerrit is not deployed at root of web server
Status: Started
Oct 30, 2014
Project Member #4 huga...@gmail.com
I know what is the problem, trying to fix it without breaking the redirection when gerrit is deployed at root of the web server.
Owner: huga...@gmail.com
Oct 31, 2014
Project Member #5 huga...@gmail.com
https://gerrit-review.googlesource.com/#/c/61230
Status: ChangeUnderReview
Nov 5, 2014
Project Member #6 huga...@gmail.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.10
Jan 27, 2015
Project Member #7 ziv...@gmail.com
(No comment was entered for this change.)
Status: Released