Skip to content

SERVER_HOME environment variable prevents Spring Boot from starting with M4 #3775

@snicoll

Description

@snicoll

This is kind of related to #3427 but in a different way.

For 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:

org.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?

The 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

Maybe we have users out there that have such property and didn't notice so far. This makes #3427 even more relevant.

Steps to reproduce: create a app from start.spring.io with the web starter, export a SERVER_HOME OS env and run.

Metadata

Metadata

Assignees

Labels

type: blockerAn issue that is blocking us from releasingtype: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions