[
https://issues.apache.org/jira/browse/MCHECKSTYLE-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17713295#comment-17713295
]
Michael Osipov edited comment on MCHECKSTYLE-425 at 4/17/23 9:27 PM:
---------------------------------------------------------------------
While I can reproduce it, it is not a bug in this plugin. The issue is with
Checkstyle itself. Unfortunately, Sun -- back then -- decided to print gargabe
output with {{URI#toString()}} instead of doing the right thing.
{{#toString()}} produces invalid URIs. One must ALWAYS use
{{#toASCIIString()}}. Never rely on {{#toString()}}. I checked the code of
Checkstyle and it unfortunately does on many occasions. File an issue there and
have it fixed.
Affected files:
{noformat}
Name Line Text Path
AbstractAutomaticBean.java 24 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle
AbstractHeaderCheck.java 28 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\header
ImportControlCheck.java 22 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\imports
ImportControlLoader.java 25 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\checks\imports
ConfigurationLoader.java 23 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle
SuppressionsLoader.java 24 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\filters
PropertyCacheFile.java 29 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle
CommonUtil.java 28 import java.net.URI;
D:\Entwicklung\Projekte\checkstyle\src\main\java\com\puppycrawl\tools\checkstyle\utils
{noformat}
was (Author: michael-o):
While I can reproduce it, it is not a bug in this plugin. The issue is with
Checkstyle itself. Unfortunately, Sun -- back then -- decided to print gargabe
output with {{URI#toString()}} instead of doing the right thing.
{{#toString()}} produces invalid URIs. One must ALWAYS use
{{#toASCIIString()}}. Never rely on {{#toString()}}. I checked the code of
Checkstyle and it unfortunately does on many occasions. File an issue there and
have it fixed.
> Checkstyle runs fail with "Path contains invalid character" since 3.2.0
> -----------------------------------------------------------------------
>
> Key: MCHECKSTYLE-425
> URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-425
> Project: Maven Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 3.2.0
> Reporter: Magnus Reftel
> Priority: Major
> Attachments: maven-checkstyle-plugin_stacktrace.txt, testcase.zip
>
>
> The maven-checkstyle-plugin fails on maven projects whose file system path
> contains the letter "ΓΈ" in versions 3.2.0, 3.2.1 and on master. Version 3.1.2
> works fine.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)