1

如何使用 HTTPS 连接到带有 SVNKit 的 Subversion 存储库?我使用之前使用 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'
4

1 回答 1

1

我的解决方案:

repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
repository = SVNRepositoryFactory.create(SVNURL.parseURI**En**coded(url));
try SVNURL.parseURIEncoded(url)
于 2011-12-05T08:08:30.850 回答