[
https://issues.apache.org/jira/browse/SCM-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962640#comment-17962640
]
ASF GitHub Bot commented on SCM-707:
------------------------------------
jira-importer opened a new issue, #914:
URL: https://github.com/apache/maven-scm/issues/914
**[Sébastien
Deleuze](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bouiaw)**
opened
**[SCM-707](https://issues.apache.org/jira/browse/SCM-707?redirect=false)** and
commented
When using SCM over http (tested in my case with Git), Maven SCM should
encode username and password before using them with URL.
In order to reproduce, try to create a release with Maven Release and a user
with a password containing @ character, it will fail.
Please find bellow cmd output :
[INFO] Executing: /bin/sh -c cd /DATA/jenkins/workspace/path && git push
http://username:*********`@git`.forge/git/project/ master:master
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-release-plugin:2.4:prepare (default-cli) on
project project: Unable to commit files
Provider message:
The git-push command failed.
Command output:
error: Couldn't resolve host '@*******`@git`.forge' while accessing
http://username:*********`@git`.forge/git/project/info/refs
fatal: HTTP request failed
---
**Affects:** 1.8
**Issue Links:**
- [SCM-846](https://issues.apache.org/jira/browse/SCM-846) userInfo in Git
HTTP URLs not escaped according to RFC 3986
(_**"breaks"**_)
**Remote Links:**
- [GitHub Pull Request #53
](https://github.com/apache/maven-scm/pull/53)
3 votes, 8 watchers
> Maven SCM should encode username and password in URL
> ----------------------------------------------------
>
> Key: SCM-707
> URL: https://issues.apache.org/jira/browse/SCM-707
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-gitexe, maven-scm-provider-mercurial
> (hg), maven-scm-provider-svn
> Affects Versions: 1.8
> Reporter: Sébastien Deleuze
> Assignee: Robert Scholte
> Priority: Major
> Fix For: 1.9
>
>
> When using SCM over http (tested in my case with Git), Maven SCM should
> encode username and password before using them with URL.
> In order to reproduce, try to create a release with Maven Release and a user
> with a password containing @ character, it will fail.
> Please find bellow cmd output :
> [INFO] Executing: /bin/sh -c cd /DATA/jenkins/workspace/path && git push
> http://username:*********@git.forge/git/project/ master:master
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-release-plugin:2.4:prepare (default-cli)
> on project project: Unable to commit files
> Provider message:
> The git-push command failed.
> Command output:
> error: Couldn't resolve host '@*******@git.forge' while accessing
> http://username:*********@git.forge/git/project/info/refs
> fatal: HTTP request failed
--
This message was sent by Atlassian Jira
(v8.20.10#820010)