Closed
Description
Given a controller like https://github.com/mvitz/spring-boot-hateoas-autoconfiguration-bug/blob/master/src/main/java/de/mvitz/spring/hateoas/server/ExceptionController.java with a @ExceptionHandler
annotated method the response is not converted to valid HAL, see:
curl -i localhost:8080/exception -HAccept:application/hal+json
HTTP/1.1 400
Content-Type: application/hal+json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 02 Feb 2017 00:05:02 GMT
Connection: close
{"links":[{"rel":"self","href":"http://google.de"}],"message":"Foo"}
Maybe I am (again) missing some little thing here but I think given the example controller I should expect to receive a response with valid HAL.
Issue occurs with Spring-Boot 1.4.4.RELEASE and 1.5.1.RELEASE as well.