2011-08-24 32 views
1

如何使用HTTPS連接到使用SVNKit的Subversion存儲庫? 我使用與HTTP連接以前能用的辦法:使用HTTPS連接到使用SVNKit的Subversion存儲庫

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

請您提供SVN連接您的完整的工作代碼,以便我可以得到大的圖片? – Lucy

回答

1

我的解決辦法:

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