gerrit/gerrit-httpd
Eryk Szymanski b158469d2d Catch NumberFormatException on invalid request
This prevents NumberFormatException in RestApiServlet on queries like:

GET /gerrit/changes/?n=25&O=815%20oR%209%3D9%20%2B%201

Which results with

ERROR| RestApiServlet | Error in GET
/gerrit/changes/?n=25&O=815%20oR%209%3D9%20%2B%201
java.lang.NumberFormatException: For input string: "815 oR 9=9 + 1"

plus the stack trace without this patch.

Change-Id: I631c51e768095998f87d861fd09d0394f23c81c1
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
2016-07-18 12:25:15 +02:00
..
src Catch NumberFormatException on invalid request 2016-07-18 12:25:15 +02:00
BUCK Buck: Remove jgit cell 2016-04-20 22:02:49 +02:00
BUILD Implement Bazel build 2016-06-14 21:12:02 +02:00