3551: Adding SVN repository result in an endless loop
- ThirdParty
- Review Board
| gerv*****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
What version are you running?
2.0.6
What's the URL of the page containing the problem?
Local instance
What steps will reproduce the problem?
1.Add a Subversion repository who require username/password but omit them.
2.Save
What is the expected output? What do you see instead?
Instead of having the repository created. The page load indefinly and the log continously display :
2014-09-03 09:32:54,445 - ERROR - - SVN: Failed to get repository information for https://subversion.url/: ("OPTIONS of 'https://subversion.url/': authorization failed: Could not authenticate to server: rejected Basic challenge (https://subversion.url)", 170001)
What operating system are you using? What browser?
Linux suze, Chrome
Please provide any additional information below.
The subversion use an untrusted certificate.
What kind of authentication is being used for SVN there? Also, do you have PySVN installed, or Subvertpy? Since this is more of a configuration/support issue, this might be best on the community support list.
We are using PySVN. Note that we have the same problem with valid credentials. We suspect the problem to be related to the username who must also contains the domain. But at this time we don't know how to specify it.
One strange thing is that the log say :
*SVN: Failed to get repository information for https://subversion:123/path/: ("OPTIONS of 'https://subversion:123/path/': authorization failed: Could not authenticate to server: rejected Basic challenge (https://subversion:123)", 170001)*
By an HTTP OPTIONS on the server with the same (basic) credentials work :
*$http -a usename:password OPTIONS https://subversion:123/path/ --verify=no*
HTTP/1.1 200 OK
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,CHECKOUT
Content-Length: 0
Content-Type: text/plain
DAV: 1,2
DAV: version-control,checkout,working-resource
DAV: merge,baseline,activity,version-controlled-collection
DAV: http://subversion.tigris.org/xmlns/dav/svn/depth
DAV: http://subversion.tigris.org/xmlns/dav/svn/log-revprops
DAV: http://subversion.tigris.org/xmlns/dav/svn/partial-replay
DAV: http://subversion.tigris.org/xmlns/dav/svn/mergeinfo
Date: Thu, 04 Sep 2014 07:39:09 GMT
MS-Author-Via: DAV
Server: Apache
Changing the url from https to http allow me to create the repository.
But then when I try to create a "Review request" I receive this error :
Exception thrown for user admin at http://reviewboard.dev.credoc.be/api/repositories/1/branches/?api_format=json
("OPTIONS of 'http://subversion:123/path/': Could not read status line: connection was closed by server (http://subversion:123)", 175002)
Traceback (most recent call last):
File "/usr/local/lib64/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib64/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Django-1.6.6-py2.6.egg/django/views/decorators/vary.py", line 19, in inner_func
response = func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/resources.py", line 494, in __call__
request, method, view, api_format=api_format, *args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/resources.py", line 565, in call_method_view
return view(request, *args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
return view_func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/decorators.py", line 110, in _check
return view_func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
return view_func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/decorators.py", line 33, in _check
return view_func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
return view_func(*args, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/webapi/resources/repository_branches.py", line 53, in get
for branch in repository.get_branches():
File "/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/scmtools/models.py", line 290, in get_branches
self.BRANCHES_CACHE_PERIOD)
File "/usr/local/lib64/python2.6/site-packages/Djblets-0.8.9-py2.6.egg/djblets/cache/backend.py", line 118, in cache_memoize
data = lookup_callable()
File "/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.0.6-py2.6.egg/reviewboard/scmtools/svn/__init__.py", line 132, in get_branches
raise SCMError(e)
SCMError: ("OPTIONS of 'http://subversion:123/path': Could not read status line: connection was closed by server (http://subversion:123)", 175002)
how to solve the issue, it happens to me.
One of our sysadmin has preconfigured the svn connection. So that we only have to set the repo URL, all authentication parameters came from the "system" config Le Ven 28 Nov 2014 05:33, null <reviewboard@googlecode.com> a écrit :
I meet this problem too. My "system" config already set correct user/pwd for access svn. It still complains the "auth reject" error