diff --git a/build.gradle b/build.gradle index 5bd3e0c3a..05453bc09 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,7 @@ subprojects { // DO NOT FORGET TO DOCUMENT CHANGES IN CHANGELOG.md // // Add a GitHub release for every new release: https://github.com/otto-de/edison-microservice/releases - version = '1.2.14-SNAPSHOT' + version = '1.2.14' group = 'de.otto.edison' repositories { diff --git a/edison-validation/src/main/java/de/otto/edison/validation/web/ValidationExceptionHandler.java b/edison-validation/src/main/java/de/otto/edison/validation/web/ValidationExceptionHandler.java index 0101fe42f..1770f8405 100644 --- a/edison-validation/src/main/java/de/otto/edison/validation/web/ValidationExceptionHandler.java +++ b/edison-validation/src/main/java/de/otto/edison/validation/web/ValidationExceptionHandler.java @@ -9,12 +9,14 @@ import org.springframework.web.bind.annotation.ResponseStatus; import static org.springframework.http.HttpStatus.UNPROCESSABLE_ENTITY; +import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8; import static org.springframework.http.ResponseEntity.unprocessableEntity; @ControllerAdvice public class ValidationExceptionHandler { - private static final MediaType APPLICATION_HAL_JSON_ERROR = MediaType.parseMediaType("application/hal+json; profiles=\"http://spec.otto.de/profiles/error\""); + private static final MediaType APPLICATION_HAL_JSON_ERROR = MediaType.parseMediaType("application/hal+json; " + + "profiles=\"http://spec.otto.de/profiles/error\"; charset=utf-8"); private final ErrorHalRepresentationFactory errorHalRepresentationFactory; @Autowired