MaSEL
MaSEL

Reputation: 525

Connecting to Subversion repository with SVNKit using HTTPS

How to connect to Subversion repository with SVNKit using HTTPS? I use the approach that worked earlier with http connection:

  DAVRepositoryFactory.setup();
repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(name, password);
repository.setAuthenticationManager(authManager);
repositoryRoot = repository.getRepositoryRoot(false).toString();

I get the

org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<https://daisy.interorigins.com:443> MY repository'

Upvotes: 1

Views: 1896

Answers (1)

bingcheng
bingcheng

Reputation: 33

My solution:

repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
repository = SVNRepositoryFactory.create(SVNURL.parseURI**En**coded(url));
try SVNURL.parseURIEncoded(url)

Upvotes: 1

Related Questions