Подключение к хранилищу Subversion с помощью SVNKit с использованием HTTPS - PullRequest
1 голос
/ 24 августа 2011

Как подключиться к хранилищу Subversion с помощью SVNKit по протоколу HTTPS?Я использую подход, который работал ранее с подключением http:

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

Я получаю

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

1 Ответ

1 голос
/ 05 декабря 2011

Мое решение:

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