如何使用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'
答案 0 :(得分:1)
我的解决方案:
repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
repository = SVNRepositoryFactory.create(SVNURL.parseURI**En**coded(url));
try SVNURL.parseURIEncoded(url)