Checkout crashes with particular URL's, as of svn 1.7.x
URL's ending in "/" or missing "http://" or "svn://" error and crash the Checkout code of SCPlugin.
Best solution: Munge the URL before passing to svn 1.7.x?
Best solution: Munge the URL before passing to svn 1.7.x?
Leave a comment
(In revision:91) Checkout had been crashing with URL's missing a scheme, or containing a trailing '/'.
Of the form:
http://subversion.assembla.com/svn/oji-nish
or
subversion.assembla.com/svn/oji-nish/
or
subversion.assembla.com/svn/oji-nish/
...now all get changed to:
http://subversion.assembla.com/svn/oji-nish/
~
That is to say, we now add a default scheme (http:// rather than svn://), and remove the trailing '/' (in the background, in the accessor, without modifying the user-input string).
test #20
Of the form:
http://subversion.assembla.com/svn/oji-nish
or
subversion.assembla.com/svn/oji-nish/
or
subversion.assembla.com/svn/oji-nish/
...now all get changed to:
http://subversion.assembla.com/svn/oji-nish/
~
That is to say, we now add a default scheme (http:// rather than svn://), and remove the trailing '/' (in the background, in the accessor, without modifying the user-input string).
test #20
on 2012-01-31 23:10 *
By Benjamin Bandt-Horn
Reporting:
It would still be good to offer an error dialog of some sort for otherwise malformed or bad URL's (instead of just bailing).
Caveat:
This fix only pertains to URL's that are otherwise correct in the User's mind.
~
Future Enhancement:
It is also possible to extract the username and password from the URL, if that is a desired feature.
I don't like how Cornerstone handles this, however. It's too "in your face."
It would still be good to offer an error dialog of some sort for otherwise malformed or bad URL's (instead of just bailing).
Caveat:
This fix only pertains to URL's that are otherwise correct in the User's mind.
~
Future Enhancement:
It is also possible to extract the username and password from the URL, if that is a desired feature.
I don't like how Cornerstone handles this, however. It's too "in your face."