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

Re: [Subclipse-users] Possible Subclipse bug with '%' in SSH login.

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Sat, 26 Jul 2008 14:37:57 +0400

> svn+ssh://serveradmin%example.com@example.com/home/3560/path/to/repo

IMHO, your URL is not a valid one.

Have you tried to replace '%' with '%25' ?

See
http://gbiv.com/protocols/uri/rfc/rfc3986.html#when-to-percent-encode
http://gbiv.com/protocols/uri/rfc/rfc3986.html#userinfo

userinfo = *( unreserved / pct-encoded / sub-delims / ":" )

2008/7/23 Thomson Mark <4markus_at_gmail.com>:
> Hi,
> One of my repositories is hosted at Mediatemple.net. They require a SSH
> login that includes a percent sign so my SVN login is as follows:
> svn+ssh://serveradmin%example.com@example.com/home/3560/path/to/repo
> Subclipse mostly works, with the exception of the SVN decorators when the
> SVN+SSH login contains the '%' sign like above. Enabling the SVN decorations
> causes the following error:
>
> begin log -------
> eclipse.buildId=M20080221-1800
> java.version=1.5.0_13
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_CA
> Framework arguments: -keyring /Users/thomson/.eclipse_keyring -showlocation
> Command-line arguments: -os macosx -ws carbon -arch x86 -keyring
> /Users/thomson/.eclipse_keyring -consoleLog -showlocation
> This is a continuation of log file
> /Users/thomson/Sites/Domains/.metadata/.bak_0.log
> Created Time: 2008-07-21 23:38:30.151
> Error
> Tue Jul 22 02:26:46 PDT 2008
> Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench".
> java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in
> escape (%) pattern - For input string: "yo"
> at java.net.URLDecoder.decode(URLDecoder.java:173)
> at org.tigris.subversion.subclipse.core.util.Util.unescape(Util.java:120)
> at
> org.tigris.subversion.subclipse.ui.decorator.SVNLightweightDecorator.decorateTextLabel(SVNLightweightDecorator.java:367)
> at
> org.tigris.subversion.subclipse.ui.decorator.SVNLightweightDecorator.decorate(SVNLightweightDecorator.java:305)
> at
> org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:253)
> at
> org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:71)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at
> org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:336)
> at
> org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:322)
> at
> org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:369)
> at
> org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:329)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> end log -------
> Note #1 The "illegal hex characters" exception indicates input string "yo"
> which are actually the first 2 letters of my domain (and therefore the first
> 2 letters following the percent sign in my SVN+SSH login string).
> Note #2 Decorators seem to work fine for me when accessing other repos which
> don't require the '%' sign.
> Lastly, I'm currently unable to upgrade to newer versions of
> Eclipse/Subclipse at the moment because of compatibility with my PDT
> version. I apologize if this has already been fixed.
> Any ideas? Thanks!
> Mark Thomson
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-07-26 12:38:09 CEST

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.