Issue 3178: gerrit 2.10 login error
Status:  Invalid
Owner: ----
Closed:  Aug 21
Reported by madu.gow...@gmail.com, Feb 13, 2015
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:2.10

What steps will reproduce the problem?
1.Running Gerrit 2.10 with reverse proxy to http://host/gerrit2/
2.Click 'Sign In' link.
3.404 not found. 

What is the expected output? What do you see instead?
The 'Sign In' link should direct to https://host/gerrit2/login/q/status:open but instead redirects to http://host/gerrit2/login/%23%2Fq%2Fstatus%3Aopen

Please provide any additional information below.

Url:

https://host/gerrit2/login/%23%2Fq%2Fstatus%3Aopen

Not Found

The requested URL /gerrit2/login/#/q/status:open was not found on this server.


If i replace on the url %23%2Fq%2Fstatus%3Aopen with #/open i am getting login screen and can able to login.
error_screen.docx
195 KB   Download
Feb 19, 2015
#1 icee...@googlemail.com
Hi,

Check your reverse proxy configuration.
Probably the AllowEncodedSlashes setting is wrong.

See:
https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html

Björn
Mar 3, 2015
Project Member #2 huga...@gmail.com
Gerrit 2.10 now encode the page url to redirect after the login. 
As Björn pointed out, you need to ensure that reverse proxy allow encoded slash and also validate the same in your web server if you are not using the embedded one.
Status: AwaitingInformation
Aug 21, 2015
Project Member #3 huga...@gmail.com
(No comment was entered for this change.)
Status: Invalid
Nov 25, 2015
#4 coderevi...@gmail.com
I added -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true in CATALINA_OPTS and still not work. I use Windows 2012 Tomcat7 Gerrit 2.11.5.
What I should do to resolve this issue ?