jira-importer commented on issue #918: URL: https://github.com/apache/maven-scm/issues/918#issuecomment-2964632987
**[Michael Koch](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tensberg)** commented The current 1.9-SNAPSHOT fails in `GitStatusCommand.executeStatusCommand` line 68 if there are spaces in the directory path. ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project codequality: An error occurred during the status check process: Exception while executing SCM command. Illegal character in path at index 29: /home/michael/Projekte/JGloss Test -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project codequality: An error occurred during the status check process: Exception while executing SCM command. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) [snip] Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 29: /home/michael/Projekte/JGloss Test at java.net.URI.create(URI.java:859) at org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusCommand.executeStatusCommand(GitStatusCommand.java:68) at org.apache.maven.scm.command.status.AbstractStatusCommand.executeCommand(AbstractStatusCommand.java:44) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) ... 31 more Caused by: java.net.URISyntaxException: Illegal character in path at index 29: /home/michael/Projekte/JGloss Test at java.net.URI$Parser.fail(URI.java:2829) ``` This is because `URI.create` does not handle spaces. Using `new File(path).toURI()` instead fixes this bug. The `GitAddCommand` and `GitCheckInCommand` should also be affected, though I haven't tested it. I've attached a patch which fixes all occurrences. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
