| Issue 2135: | When running on Tomcat 7, while trying to open any change I keep getting BAD REQUEST error | |
| 5 people starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.7 What steps will reproduce the problem? 1. Log in the gerrit 2. In any change list (my changes / all changes), click on any change. We expect the change to open for review. But it won't. Error message "Code Review Error - Bad request" is shown instead. The problem seems to be somehow related to running within tomcat 7 container (i tried also upgrade to newest version 7.0.42). With embedded Jetty it seems to work fine. The problem was not present in gerrit version 2.5 which we were using till now, it started right after the upgrade. From our point of view this is quite serious, since our servers are running on windows and we use tomcat container to run our web applications as service. What is the expected output? What do you see instead? Please provide any additional information below.
Sep 23, 2013
#1
michael....@gmail.com
Sep 24, 2013
(No comment was entered for this change.)
Summary:
When running on Tomcat 7, while trying to open any change I keep getting BAD REQUEST error
(was: When running on Tomcat 7, while trying top open any change i keep getting BAD REQUEST error)
Sep 24, 2013
I did some research and could find nothing useful in the logs, but when you take a look at the requests and responses the browser sends you see an error message like the following one: Failed to load resource: the server responded with a status of 400 (Bad Request) https://<yourhostname>/gerrit/projects/<project-name>/config
Oct 16, 2013
Add "-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true" to your catalina options in tomcat/bin/setenv.sh This is related to the path changes in gerrit.
Oct 16, 2013
Thanks for the help! With the parameter it is working again.
Oct 16, 2013
(No comment was entered for this change.)
Status:
Invalid
Aug 2, 2014
Solution provided by Ian also helped me resolve problem on: gerrit 2.9 official Ubuntu 12 LTS with Apache with ProxyPass. tomcat6 + OpenJDK 1.7.x But because I have only gerrit on this host, instead of altering setenv.sh, I added it to JAVA_OPTS in /etc/default/tomcat6 |
|
| ► Sign in to add a comment |