[
https://issues.apache.org/jira/browse/MVERIFIER-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959155#comment-17959155
]
Matthias Bünger commented on MVERIFIER-8:
-----------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-verifier-plugin#15|https://github.com/apache/maven-verifier-plugin/issues/15].
> The plugin don't detect if a properties file entry contains blank spaces at
> line start or line end
> --------------------------------------------------------------------------------------------------
>
> Key: MVERIFIER-8
> URL: https://issues.apache.org/jira/browse/MVERIFIER-8
> Project: Maven Verifier Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: fulvio russo
> Priority: Major
> Attachments: Maven_verfier_plugin_patched.zip
>
>
> Given a properties file, the Verifier plugin for each entry (key-value pair)
> don't detect if some blank spaces are present at start line or end line. If
> that spaces are present, reading the Properties file from java can cause
> errors if the value is about username, password to be used in a database
> connection or similar.
> For example some blank spaces can be inserted when you make a cut and paste
> for others files in the properties file.
> The attached zip file contains the fixed source java class (VerifierMojo.java
> method "verifyFileContent") of the plugin, also the zip contains the plugin
> patched in a jar format.
> Also in the verifications.xml file used by the plugin, is necessary insert
> the regexp to verify that blank spaces:
> <file>
> <location>src/main/resources/propertiesFileToCheck.properties
> </location>
> <!-- Check if that file exist -->
> <exists>true</exists>
> <!-- The regexp to apply at each properties line to detect blank spaces -->
> <contains>\s+$</contains>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)