[ https://issues.apache.org/jira/browse/SCM-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17964536#comment-17964536 ]
Olivier Lamy commented on SCM-379: ---------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-scm#598|https://github.com/apache/maven-scm/issues/598]. > SCM URL with query transformed incorrectly on release:prepare > ------------------------------------------------------------- > > Key: SCM-379 > URL: https://issues.apache.org/jira/browse/SCM-379 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Bug > Components: maven-scm-provider-svn > Affects Versions: 1.0 > Reporter: Doron Solomon > Assignee: Siveton Vincent > Priority: Major > Fix For: 1.1 > > Attachments: SvnTagBranchUtils.java > > > Given the following scm definition: > <scm> > <connection>scm:svn:https://myserver/svn/myproj/pom/trunk</connection> > > <developerConnection>scm:svn:https://myserver/svn/myproj/pom/trunk</developerConnection> > <url>https://myserver/plugins/scmsvn/viewcvs.php/pom/trunk?root=myproj</url> > </scm> > Running the release:prepare goal transforms this to the following (in the POM > associated to the tag): > <scm> > > <connection>scm:svn:https://myserver/svn/myproj/pom/tags/mytag-1</connection> > > <developerConnection>scm:svn:https://myserver/svn/myproj/pom/tags/mytag-1</developerConnection> > > <url>https://myserver/plugins/scmsvn/viewcvs.php/pom/trunk?root=myproj/tags/mytag-1?root=myproj</url> > </scm> > The <url> element is incorrect, as it is adding the query "?root=myproj" > twice. The desired url tag is: > > <url>https://myserver/plugins/scmsvn/viewcvs.php/pom/tags/mytag-1?root=myproj</url> > The problem is in the class > org.apache.maven.scm.provider.svn.SvnTagBranchUtils (in artifact > org.apache.maven.scm:maven-scm-providers-svn). The method resolveUrl is > considering the case where the URL contains a query string, but is not > removing the query part of the URL before transforming it. The attached java > file contains the patched version of this class that I have tested. -- This message was sent by Atlassian Jira (v8.20.10#820010)