Enlarged Jetty request buffer allowing longer URL & enabled Search POST.
Updated Krill.
Change-Id: I22ef9fe89a25612b6b64ae16152b354cecd234ae
diff --git a/core/pom.xml b/core/pom.xml
index b43445b..116c956 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -14,7 +14,7 @@
<hibernate.version>5.5.7.Final</hibernate.version>
<flyway.version>7.15.0</flyway.version>
<log4j.version>2.14.1</log4j.version>
- <krill.version>[0.59.3,)</krill.version>
+ <krill.version>[0.59.5,)</krill.version>
<koral.version>[0.37,)</koral.version>
</properties>
diff --git a/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java b/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
index 647009d..3c05116 100644
--- a/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
+++ b/core/src/main/java/de/ids_mannheim/korap/server/KustvaktBaseServer.java
@@ -13,6 +13,7 @@
import javax.servlet.ServletContextListener;
import org.eclipse.jetty.server.Connector;
+import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.HandlerList;
@@ -117,6 +118,8 @@
ServerConnector connector = new ServerConnector(server);
connector.setPort(kargs.port);
connector.setIdleTimeout(60000);
+ connector.getConnectionFactory(HttpConnectionFactory.class)
+ .getHttpConfiguration().setRequestHeaderSize(64000);
ShutdownHandler shutdownHandler = new ShutdownHandler(adminToken,true,true);
diff --git a/core/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java b/core/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
index 1e75b0e..dfab860 100644
--- a/core/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
+++ b/core/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
@@ -148,9 +148,9 @@
// This web service is DISABLED until there is a need for it.
-// @POST
-// @Path("{version}/search")
-// @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
+ @POST
+ @Path("{version}/search")
+ @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
public Response searchPost (@Context SecurityContext context,
@Context Locale locale,
@Context HttpHeaders headers,