{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3775","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3775/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3775/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3775/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3775","id":101663297,"number":3775,"title":"SERVER_HOME prevents Spring Boot to start with M4","user":{"login":"snicoll","id":490484,"avatar_url":"https://avatars.githubusercontent.com/u/490484?v=3","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/regression","name":"regression","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-18T14:03:07Z","updated_at":"2015-08-19T08:41:29Z","closed_at":null,"body":"This is kind of related to #3427 but in a different way.\r\n\r\nFor some reason, `SERVER_HOME` was not processed by Spring Boot up to `1.3.0.M3`. Since M4, it is now processed and this leads to the following:\r\n\r\n```\r\norg.springframework.beans.NotWritablePropertyException: Invalid property 'HOME' of bean class [org.springframework.boot.autoconfigure.web.ServerProperties]: Bean property 'HOME' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?\r\n```\r\n\r\nThe weird thing here is that it is \"expected\" as anything that is not known by `ServerProperties` should blow up. But for some reason having a `SERVER_HOME` OS env works just fine *except* with `1.3.0.M4`\r\n\r\nMaybe we have users out there that have such property and didn't notice so far. This makes #3427 even more relevant.\r\n\r\nSteps to reproduce: create a app from start.spring.io with the `web` starter, **export** a `SERVER_HOME` OS env and run."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/132494534","html_url":"https://github.com/spring-projects/spring-boot/issues/3775#issuecomment-132494534","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3775","id":132494534,"user":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars.githubusercontent.com/u/914682?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T08:41:29Z","updated_at":"2015-08-19T08:41:29Z","body":"Thanks for the feedback, @sbrannen. Note that I was only making the case for this not being classed as a regression. I was not making a case for doing nothing to address the issue.\r\n\r\nI think the point that you've made about the diagnostics for a binding failure is a good one. The problem's actually broader than this issue. For example, A `SERVER_PORT` environment variable with a strange or mistyped value with also cause a hard-to-diagnose failure. I've opened #3778."}}