Issue 2600: tomcat deployment + context path
Status:  CannotReproduce
Owner: ----
Closed:  Apr 2015
Reported by tib...@gmail.com, Apr 9, 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:
2.9.1-rc1

What steps will reproduce the problem?
1. install gerrit into tomcat, contextPath: gerrit
2. configure change view to new screen
3. navigate to a change
3. click on a link of a file path in the files block.

What is the expected output? What do you see instead?

See the file diff view. Instead I get 400 bad request. 

Please provide any additional information below.

It seems as if the REST url is derived from the httpd.listenUrl gerrit.config parameter instead of the gerrit.canonicalWebUrl. 

This means that the problem has the workaround: enter the http://*:8080/gerrit/ into the listenUrl, and everything is working fine. 
Apr 18, 2014
#1 tib...@gmail.com
I am sorry. The additional information is invalid. The workaround is not working. If I run gerrit in tomcat, the mark reviewed and the diff view is not working, and it is independent of the listenUrl.  
Apr 21, 2014
Project Member #2 huga...@gmail.com
I do not think this is related to the context path at all. We have Gerrit running in tomcat in production with new change screen.

I just tested in a local tomcat installation and I got the new change screen to work.

Add this property to the catalina_opts: -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

it should fix your issue.
Status: AwaitingInformation
Apr 2, 2015
Project Member #3 huga...@gmail.com
(No comment was entered for this change.)
Status: CannotReproduce