{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3281","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3281/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3281/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3281/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3281","id":89307835,"number":3281,"title":"devtools interferes with Spring Data REST projection behavior","user":{"login":"cbeams","id":301810,"avatar_url":"https://avatars.githubusercontent.com/u/301810?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeams","html_url":"https://github.com/cbeams","followers_url":"https://api.github.com/users/cbeams/followers","following_url":"https://api.github.com/users/cbeams/following{/other_user}","gists_url":"https://api.github.com/users/cbeams/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeams/subscriptions","organizations_url":"https://api.github.com/users/cbeams/orgs","repos_url":"https://api.github.com/users/cbeams/repos","events_url":"https://api.github.com/users/cbeams/events{/privacy}","received_events_url":"https://api.github.com/users/cbeams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-18T14:26:43Z","updated_at":"2015-06-18T16:52:55Z","closed_at":null,"body":"_NOTE: I will issue a pull request against spring-boot-issues immediately after submitting this issue._\r\n\r\nRepro steps:\r\n\r\n - `./gradlew bootRun`\r\n - `http localhost:8080/api`. Notice the \"orders\" rel href is correctly templated with `{?projection}`:\r\n\r\n```\r\n$ http localhost:8080/api\r\nHTTP/1.1 200 OK\r\nContent-Type: application/hal+json;charset=UTF-8\r\nDate: Thu, 18 Jun 2015 13:55:07 GMT\r\nServer: Apache-Coyote/1.1\r\nTransfer-Encoding: chunked\r\n\r\n{\r\n    \"_links\": {\r\n        \"items\": {\r\n            \"href\": \"http://localhost:8080/api/items\"\r\n        },\r\n        \"orders\": {\r\n            \"href\": \"http://localhost:8080/api/orders{?projection}\",\r\n            \"templated\": true\r\n        },\r\n        \"profile\": {\r\n            \"href\": \"http://localhost:8080/api/alps\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n - uncomment `spring-boot-devtools` dependency on line 36 of `build.gradle`.\r\n - re-run `./gradle bootRun`.\r\n - `http localhost:8080/api` once again. Notice that the \"orders\" rel href is no longer templated with `{?projection}`:\r\n\r\n```\r\n$ http localhost:8080/api\r\nHTTP/1.1 200 OK\r\nContent-Type: application/hal+json;charset=UTF-8\r\nDate: Thu, 18 Jun 2015 14:19:59 GMT\r\nServer: Apache-Coyote/1.1\r\nTransfer-Encoding: chunked\r\n\r\n{\r\n    \"_links\": {\r\n        \"items\": {\r\n            \"href\": \"http://localhost:8080/api/items\"\r\n        },\r\n        \"orders\": {\r\n            \"href\": \"http://localhost:8080/api/orders\"\r\n        },\r\n        \"profile\": {\r\n            \"href\": \"http://localhost:8080/api/alps\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n/cc @olivergierke"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/113217772","html_url":"https://github.com/spring-projects/spring-boot/issues/3281#issuecomment-113217772","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3281","id":113217772,"user":{"login":"cbeams","id":301810,"avatar_url":"https://avatars.githubusercontent.com/u/301810?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeams","html_url":"https://github.com/cbeams","followers_url":"https://api.github.com/users/cbeams/followers","following_url":"https://api.github.com/users/cbeams/following{/other_user}","gists_url":"https://api.github.com/users/cbeams/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeams/subscriptions","organizations_url":"https://api.github.com/users/cbeams/orgs","repos_url":"https://api.github.com/users/cbeams/repos","events_url":"https://api.github.com/users/cbeams/events{/privacy}","received_events_url":"https://api.github.com/users/cbeams/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T16:52:55Z","updated_at":"2015-06-18T16:52:55Z","body":"I spoke too soon. After picking up the changes in DATACMNS-717 in cbeams/spring-boot-issues@a331104, projection-templated link URIs do indeed show up properly, but when actually issuing a request against them, an opaque 500 is returned. No error message in the response, no stack trace on the server:\r\n\r\n```\r\n$ http get http://localhost:8080/api/orders?projection=withItems\r\nHTTP/1.1 500 Internal Server Error\r\nConnection: close\r\nContent-Length: 0\r\nDate: Thu, 18 Jun 2015 16:44:45 GMT\r\nServer: Apache-Coyote/1.1\r\n\r\n\r\n```\r\n\r\nSet an exception breakpoint on `IllegalArgumentException` to see where this originates. Reopening this issue in the meantime."}}