Issue 2503: New UI does not open file diff in Mozilla
Status:  Invalid
Owner: ----
Closed:  Apr 2014
Reported by anantha....@gmail.com, Feb 26, 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: Gerrit 2.8.1

What steps will reproduce the problem?
1. Set the New UI from User Preferences
2. Open the file diff for a review

What is the expected output? What do you see instead?
Expected output: File diff view opens
Actual output: Code Review error, bad request is displayed.

Please provide any additional information below.
File diff opens fine as expected in Old UI.
Apr 21, 2014
Project Member #1 huga...@gmail.com
are you running in tomcat?
Status: AwaitingInformation
Apr 22, 2014
#2 anantha....@gmail.com
Yes, I have deployed Gerrit in Tomcat 7.0
Apr 22, 2014
Project Member #3 huga...@gmail.com
Add this property to the catalina_opts: -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

I think you issue is related to the fact that the new diff screen is called using encode slash in the url.

I thinks this catalina opts should solve your issue.
Apr 23, 2014
#4 anantha....@gmail.com
Thanks for that suggestion. Filediff is working now, after I added that property into CATALINA_OPTS. 

However, for re-verifying I disabled it and restarted Tomcat. And Filediff viewer is still opening! Could you please explain this..?! 
Apr 23, 2014
Project Member #5 huga...@gmail.com
I can explain that: clear browser cache, you will start to get issue again.
Apr 23, 2014
#6 anantha....@gmail.com
Arrghhh.. the browser cache :)
Thanks a lot, I am fine with the solution. Please close the bug.
Apr 23, 2014
Project Member #7 huga...@gmail.com
(No comment was entered for this change.)
Status: Invalid