[ https://issues.apache.org/jira/browse/CMIS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887921#action_12887921 ]
Jeff Potts commented on CMIS-236: --------------------------------- Okay, this definitely happens on Windows, but not Mac OS X. I can reproduce it using straight urllib2 example code so this isn't a cmislib issue. However, if someone knows something I can do to defend against it in my code, I'm happy to include it. > CmisClientTest.testCmisClientBadAuth will cause python runtime error > -------------------------------------------------------------------- > > Key: CMIS-236 > URL: https://issues.apache.org/jira/browse/CMIS-236 > Project: Chemistry > Issue Type: Bug > Components: cmislib > Reporter: Jeff Potts > Assignee: Jeff Potts > > Migrated from GC issue 15, Reported by niyue.com, Mar 29, 2010 > Because incorrect password is used, 401 response will be return from > server, but it seems there's some client issue causing a recursive > redirection and finally leading to a runtime error. Tested against Alfresco > hosted service "http://cmis.alfresco.com/s/cmis". > {{{ > File "C:\Python26\lib\urllib2.py", line 855, in http_error_401 > url, req, headers) > File "C:\Python26\lib\urllib2.py", line 833, in http_error_auth_reqed > return self.retry_http_basic_auth(host, req, realm) > File "C:\Python26\lib\urllib2.py", line 843, in retry_http_basic_auth > return self.parent.open(req, timeout=req.timeout) > File "C:\Python26\lib\urllib2.py", line 391, in open > response = self._open(req, data) > File "C:\Python26\lib\urllib2.py", line 409, in _open > '_open', req) > File "C:\Python26\lib\urllib2.py", line 369, in _call_chain > result = func(*args) > File "C:\Python26\lib\urllib2.py", line 1161, in http_open > return self.do_open(httplib.HTTPConnection, req) > File "C:\Python26\lib\urllib2.py", line 1133, in do_open > h.request(req.get_method(), req.get_selector(), req.data, headers) > File "C:\Python26\lib\httplib.py", line 910, in request > self._send_request(method, url, body, headers) > File "C:\Python26\lib\httplib.py", line 947, in _send_request > self.endheaders() > File "C:\Python26\lib\httplib.py", line 904, in endheaders > self._send_output() > File "C:\Python26\lib\httplib.py", line 776, in _send_output > self.send(msg) > File "C:\Python26\lib\httplib.py", line 735, in send > self.connect() > File "C:\Python26\lib\httplib.py", line 716, in connect > self.timeout) > File "C:\Python26\lib\socket.py", line 504, in create_connection > sock = socket(af, socktype, proto) > RuntimeError: maximum recursion depth exceeded while calling a Python object > }}} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.