[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Issue# svn scm maven plugin doenot work with special character @ in SVN passwords

From: Akanksha Dayal <dayal.akank_at_gmail.com>
Date: Tue, 2 Jul 2013 14:33:53 -0700

Hi Developers,

I bumped into this issue while working with scm svn maven plugin. To
recreate this bug:

1. set svn password to something like 123_at_abc (anything with '@')
2. try to import the svn repository using maven plugin
3. the error would be because the host name is messed up.

This happens because the repository url path is parsed looking at @ index.
The fix is as below:

in
file org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository
(ln 162)

- int indexAt = urlPath.indexOf( "@" );
+ int indexAt = urlPath.lastIndexOf( "@" );

Also, this error probably valid for some mroe special characters used in
parsing the URL path.

Thanks,
Akanksha
Received on 2013-07-03 00:00:51 CEST

This is an archived mail posted to the Subversion Dev mailing list.