Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documented defaults for some server properties do not match runtime defaults #13821

Closed
wilkinsona opened this issue Jul 19, 2018 · 5 comments
Closed
Assignees
Labels
type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

wilkinsona commented Jul 19, 2018

For a number of properties, the default in the code and, therefore, in the generated metadata is zero or null. At runtime, such values are interpreted as meaning that the component's default should be used. An unwanted side-effect of this is that the default from the metadata that is shown in your IDE does not match the default that you'll get at runtime. We should align the defaults in the code and metadata with the runtime defaults and add tests to ensure that the two are kept in sync.

@wilkinsona wilkinsona added the type: bug A general bug label Jul 19, 2018
@wilkinsona wilkinsona added this to the 1.5.x milestone Jul 19, 2018
@wilkinsona wilkinsona self-assigned this Jul 19, 2018
@wilkinsona
Copy link
Member Author

This problem is broader than just server properties.

@wilkinsona wilkinsona changed the title Documented defaults for some server properties do not match runtime defaults Documented defaults for some properties do not match runtime defaults Jul 20, 2018
@snicoll
Copy link
Member

snicoll commented Aug 30, 2018

I guess all the "bytes" type properties are covered by this one. When merging forward to master we should switch those to DataSize. Given we're approaching RC1 it would be nice to do this sooner than later.

@wilkinsona
Copy link
Member Author

wilkinsona commented Sep 6, 2018

To keep the scope manageable, let's narrow this back down to focus on server properties. We can open separate issues for other areas of the codebase.

@wilkinsona wilkinsona changed the title Documented defaults for some properties do not match runtime defaults Documented defaults for some server properties do not match runtime defaults Sep 6, 2018
@snicoll
Copy link
Member

snicoll commented Sep 7, 2018

This change unfortunately breaks the 1.5.xTomcat 7 support in a very subtle way. redirectContextRoot has now a default value, which means that we're going to invoke the customizer no matter what and that method is not available on Tomcat 7.

@snicoll snicoll reopened this Sep 7, 2018
@wilkinsona wilkinsona modified the milestones: 1.5.x, 1.5.16 Sep 7, 2018
@wilkinsona
Copy link
Member Author

😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants