From 66cb67d0168aa93124093c2214155fa3f880d1a1 Mon Sep 17 00:00:00 2001 From: "Deegan, Edward" Date: Thu, 11 Jun 2015 13:26:32 +0100 Subject: [PATCH 1/2] fix for grizzly sending servlet html instead of entity body of exception mapper --- .../micro/server/rest/jersey/JerseyRestApplication.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java b/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java index 9a0a49b5e..3a29c6786 100644 --- a/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java +++ b/micro-core/src/main/java/com/aol/micro/server/rest/jersey/JerseyRestApplication.java @@ -32,6 +32,7 @@ public JerseyRestApplication() { } public JerseyRestApplication(List allResources,List packages, List resources) { + if (allResources != null) { for (Object next : allResources) { if(isSingleton(next)) @@ -42,7 +43,11 @@ public JerseyRestApplication(List allResources,List packages, Li } } property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true); - packages.stream().forEach( e -> packages(e)); + + //http://stackoverflow.com/questions/25755773/bean-validation-400-errors-are-returning-default-error-page-html-instead-of-re + property(ServerProperties.RESPONSE_SET_STATUS_OVER_SEND_ERROR, "true"); + + packages.stream().forEach( e -> packages(e)); resources.stream().forEach( e -> register(e)); } From c04e29ea90766819073ab7a60a8bfc2e84b71dc9 Mon Sep 17 00:00:00 2001 From: "Deegan, Edward" Date: Fri, 12 Jun 2015 17:41:35 +0100 Subject: [PATCH 2/2] updated to v0.58 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 7747d0ba9..291bf3594 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=0.57 +version=0.58