Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19785

Jabber Plugin: request for checkbox: legacy SSL connection only

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jabber-plugin
    • None

      Our internal company XMPP server supports legacy SSL connections.

      We are currently using the Jabber plugin with it, with the 'Enable SASL connection option' enabled as well. It is working pretty well for us.

      One issue I am seeing in the logfile is that it takes the Jabber plugin 1 minute to connect to the server, because it first tries to connect with SASL, then gets an EOFException, and finally (60 secs later) retries with legacy SSL and succeeds. See log below:

      Sep 26, 2013 2:14:00 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run
      INFO: Trying to reconnect
      Sep 26, 2013 2:14:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
      INFO: Trying to connect to XMPP on somebox:someport/foo.com with SASL
      java.io.EOFException: input contained no data
      at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
      at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
      at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
      at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
      at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
      Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL
      INFO: Retrying connection with legacy SSL
      Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection setupSubscriptionMode
      INFO: Accepting all subscription requests
      Sep 26, 2013 2:15:00 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect
      INFO: Connected to XMPP on somebox:someport/foo.com

      At first, I thought all we would need to do is uncheck the 'Enable SASL connection option' checkbox. But alas, if we deselect that, then it never connects.

      Sep 26, 2013 2:21:22 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run
      INFO: Trying to reconnect
      Sep 26, 2013 2:21:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
      INFO: Trying to connect to XMPP on somehost:someport/foo.com
      java.io.EOFException: input contained no data
      at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
      at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
      at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
      at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
      at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
      Sep 26, 2013 2:22:22 PM hudson.model.Run execute
      Sep 26, 2013 2:22:22 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL
      INFO: Retrying connection with legacy SSL
      stream:error (not-authorized)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
      Sep 26, 2013 2:22:43 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect
      WARNING: No response from the server.:
      at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73)
      at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212)
      at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:319)
      at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:162)
      at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
      at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65)
      at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22)
      at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183)
      at java.lang.Thread.run(Thread.java:662)

      Sep 26, 2013 2:22:43 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run
      INFO: Reconnect failed. Next connection attempt in 1 minutes
      ...

      Would it be possible to add a checkbox so that it can skip the original XMPP connection using SASL and directly go to XMPP over Legacy SSL?

      Thanks!
      -Steve

            kutzi kutzi
            sroth Steve Roth
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: