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

Any line that is immediately after a line that contains only a # is lost when reading application properties files #24158

Closed
gknight42 opened this issue Nov 14, 2020 · 0 comments
Assignees
Labels
type: regression A regression from a previous release
Milestone

Comments

@gknight42
Copy link

If an application.properties file has the following content:

#
property1.name=value1
property2.name=value2

The second line (property1.name=value1) is skipped over and not loaded.
It does not seem to matter where in the file this pattern occurs.

This started happening in spring boot 2.4.0.
Previously in spring boot 2.3.5 it worked properly.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 14, 2020
@wilkinsona wilkinsona added type: regression A regression from a previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 15, 2020
@wilkinsona wilkinsona added this to the 2.4.1 milestone Nov 15, 2020
@mbhave mbhave self-assigned this Nov 18, 2020
@wilkinsona wilkinsona changed the title OriginTrackedPropertiesLoader drops next line if current line is just a single pound character Any line that is immediately after a line that contains only a # is lost when reading application properties files Nov 18, 2020
@mbhave mbhave closed this as completed in e342d7d Nov 18, 2020
@philwebb philwebb pinned this issue Dec 4, 2020
@philwebb philwebb unpinned this issue Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

4 participants