Message6282

Author public.marvin
Recipients public.marvin
Date 2010-12-17.05:15:23
SpamBayes Score 1.0294615e-06
Marked as misclassified No
Message-id <1292562924.47.0.117179552078.issue1688@psf.upfronthosting.co.za>
In-reply-to
Content
A small example shows the failure.  Of course this requires an xml server to be running and using ssl, which is more work than I can do now to set up for this issue.  This may be related to http://bugs.jython.org/issue1152612.

xmltest.py:
import xmlrpclib
sp = xmlrpclib.ServerProxy('https://localhost:9999/v2/xmlrpc')
print sp.repo.authenticate('test','test')

bash-3.2$ python xmltest.py 
python xmltest.py 
<prints an authentication token>
bash-3.2$ jython xmltest.py 
jython xmltest.py 
Traceback (most recent call last):
  File "xmltest.py", line 3, in <module>
    print sp.repo.authenticate('test','test')
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/xmlrpclib.py", line 1433, in _ServerProxy__request
    response = self.__transport.request(
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/xmlrpclib.py", line 1183, in request
    self.send_content(h, request_body)
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/xmlrpclib.py", line 1297, in send_content
    connection.endheaders()
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/httplib.py", line 860, in endheaders
    self._send_output()
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/httplib.py", line 732, in _send_output
    self.send(msg)
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/httplib.py", line 699, in send
    self.connect()
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/httplib.py", line 1135, in connect
    ssl = socket.ssl(sock, self.key_file, self.cert_file)
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/socket.py", line 1487, in ssl
    return _realssl(sock, keyfile, certfile)
  File "/private/tmp/Build/TENA_MIDDLEWARE/install/TENA/eclipse/plugins/org.jython_2.5.2/Lib/socket.py", line 1436, in __init__
    raise _map_exception(jlx)
socket.sslerror: (-1, 'SSL handshake exception')
bash-3.2$ jython -V; python -V
Jython 2.5.2rc2
Python 2.6.1
History
Date User Action Args
2010-12-17 05:15:24public.marvinsetrecipients: + public.marvin
2010-12-17 05:15:24public.marvinsetmessageid: <1292562924.47.0.117179552078.issue1688@psf.upfronthosting.co.za>
2010-12-17 05:15:24public.marvinlinkissue1688 messages
2010-12-17 05:15:23public.marvincreate