-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Automatically remove trailing spaces in the application.properties file #19956
Comments
Good question. @radcortez does MP Config say anything about this? |
We don't do that globally but we apply a converter locally for the properties for which it makes sense. See |
Thanks for that tip @gsmet. I somehow managed to miss it :). I'll add that for the container-image properties. |
Nothing, because it follows the behavior of I understand that this may be inconvenient for some users, but on the other hand, we cannot blindly remove all trailing spaces for every configuration, because it means we may be changing the user configuration and we don't know if the user wants to have the space there or not. |
Trim container-image configuration values
Just a heads up that this change changes the following behavior: if setting the group to empty using a trailing space, you need to replace it with an empty quoted string |
Fixes: quarkusio#19956 (cherry picked from commit ab8fa5e)
Description
Trailing spaces after property in the
application.properties
file can cause unwanted errors.Example:
quarkus-openshift
extensionquarkus.application.name=myservice
(with a trailing space)Is there a reason to leave trimming on developers?
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: