Add findbugs-maven-plugin

Address one bug and ignore XSS bugs.
pull/16/head
Andrew Gaul 2014-08-18 10:50:55 -07:00
rodzic 407a406734
commit ba3171a8e7
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -122,6 +122,15 @@
<forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<effort>Max</effort>
<omitVisitors>CrossSiteScripting</omitVisitors>
</configuration>
</plugin>
<plugin>
<groupId>org.skife.maven</groupId>
<artifactId>really-executable-jar-maven-plugin</artifactId>

Wyświetl plik

@ -373,7 +373,7 @@ final class S3ProxyHandler extends AbstractHandler {
String maxKeysString = request.getParameter("max-keys");
if (maxKeysString != null) {
try {
maxKeys = Integer.valueOf(maxKeysString);
maxKeys = Integer.parseInt(maxKeysString);
} catch (NumberFormatException nfe) {
sendSimpleErrorResponse(response,
HttpServletResponse.SC_BAD_REQUEST, "InvalidArgument",