Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462294 - net-im/gajim-0.15.3 fails to connect to server that has no StartTLS support
Summary: net-im/gajim-0.15.3 fails to connect to server that has no StartTLS support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-03-19 11:24 UTC by Dmitry Suloev
Modified: 2013-03-21 11:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for fixing this issue (gajim.patch,572 bytes, patch)
2013-03-19 11:24 UTC, Dmitry Suloev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Suloev 2013-03-19 11:24:07 UTC
After updating gajim I can't connect to my test server.


Reproducible: Always

Steps to Reproduce:
1.run gajim from terminal emulator
2.add account on server without StartTLS support
3.get traceback in terminal emulator
Actual Results:  
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/idlequeue.py", line 533, in _process_events
    return IdleQueue._process_events(self, fd, flags)
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/idlequeue.py", line 394, in _process_events
    obj.pollin()
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/transports_nb.py", line 420, in pollin
    self._do_receive()
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/transports_nb.py", line 606, in _do_receive
    self._on_receive(received)
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/transports_nb.py", line 620, in _on_receive
    self.on_receive(data)
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/client_nb.py", line 320, in <lambda>
    self.onreceive(lambda _data:self._xmpp_connect_machine(mode, _data))
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/client_nb.py", line 375, in _xmpp_connect_machine
    self._xmpp_connect_machine(mode='STREAM_STARTED')
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/client_nb.py", line 378, in _xmpp_connect_machine
    self._on_stream_start()
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/client_nb.py", line 394, in _on_stream_start
    self._on_connect()
  File "/usr/lib64/python2.7/site-packages/gajim/common/xmpp/client_nb.py", line 451, in _on_connect
    self.on_connect(self, self.connected)
  File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 1287, in _connect_success
    return self.connection_accepted(con, con_type)
  File "/usr/lib64/python2.7/site-packages/gajim/common/connection.py", line 1350, in connection_accepted
    if not check_X509.check_certificate(con.Connection.ssl_certificate[
IndexError: list index out of range

Expected Results:  
gajim should connect to server
Comment 1 Dmitry Suloev 2013-03-19 11:24:33 UTC
Created attachment 342622 [details, diff]
Patch for fixing this issue
Comment 2 Dmitry Suloev 2013-03-19 14:01:58 UTC
Upstream bug: https://trac.gajim.org/ticket/7322
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-03-21 09:48:37 UTC
(In reply to comment #2)
> Upstream bug: https://trac.gajim.org/ticket/7322

Does the original upstream patch fixes your problem?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-03-21 09:51:08 UTC
+*gajim-0.15.3-r1 (21 Mar 2013)
+
+  21 Mar 2013; Justin Lecher <jlec@gentoo.org> +gajim-0.15.3-r1.ebuild,
+  +files/gajim-0.15.3-starttls.patch:
+  Backport upstream patch for servers without STARTTLS support, #462294
+
Comment 5 Dmitry Suloev 2013-03-21 11:01:28 UTC
Both patches fix problem.