What version are you running?
1.5.5
What's the URL of the page containing the problem?
api/info/ from Mylyn ReviewBoard connector or from Chrome
What steps will reproduce the problem?
1. Delete cookies from browser
2. Access {BASE_URL}/api/info
3. Error is emailed to admin
What is the expected output? What do you see instead?
Expect a 403 not authorized, instead getting 500 Internal Server Error and an error email
What operating system are you using? What browser?
Server on CentOS 5.3 with Python 2.4; Browser is Chrome on Windows 7. Mylyn is on Eclipse Gamymede on Windows 7.
Please provide any additional information below.
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/views/decorators/cache.py", line 79, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/views/decorators/vary.py", line 22, in inner_func
response = func(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.7-py2.4.egg/djblets/webapi/resources.py", line 246, in __call__
check_login(request)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.7-py2.4.egg/djblets/webapi/auth.py", line 43, in check_login
basic_access_login(request)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.7-py2.4.egg/djblets/webapi/auth.py", line 65, in basic_access_login
user = auth.authenticate(username=username, password=password)
File "/usr/lib/python2.4/site-packages/Django-1.3-py2.4.egg/django/contrib/auth/__init__.py", line 55, in authenticate
user = backend.authenticate(**credentials)
File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.5-py2.4.egg/reviewboard/accounts/backends.py", line 285, in authenticate
'(&(objectClass=user)(sAMAccountName=%s))' % username)
File "/usr/lib/python2.4/site-packages/ReviewBoard-1.5.5-py2.4.egg/reviewboard/accounts/backends.py", line 211, in search_ad
return con.search_s(search_root, scope=ldap.SCOPE_SUBTREE, filterstr=filterstr)
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 481, in search_s
return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 475, in search_ext_s
return self.result(msgid,all=1,timeout=timeout)[1]
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 405, in result
res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 409, in result2
res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 415, in result3
rtype, rdata, rmsgid, serverctrls = self._ldap_call(self._l.result3,msgid,all,timeout)
File "/usr/lib64/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
OPERATIONS_ERROR: {'info': '000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1', 'desc': 'Operations error'}
<ModPythonRequest
path:/api/info/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0,
'CONTENT_TYPE': None,
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_AUTHORIZATION': 'Basic ampvbmVzOg==',
'HTTP_HOST': 'rlocalhost',
'HTTP_USER_AGENT': 'Mylyn/3.5.0 eReviewBoard Eclipse/3.6.2 (org.eclipse.epp.package.java.product) HttpClient/3.1 Java/1.6.0_24 (Sun) Windows 7/6.1 (x86; en_US)',
'PATH_INFO': u'/api/info/',
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': '192.168.1.1',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'localhost',
'SERVER_PORT': 443,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>