No error / options shown when fail to make SSL connection

Bug #1643326 reported by Edward Baxter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Chatter
Triaged
Medium
Unassigned

Bug Description

Hi!

I'm trying to use Chatter to connect to my ZNC bouncer - I have configured my server as follows:

Name: Freeznc

URL: ircs://znc.piecemaker.rocks:1025

Nickname: eddie/freenode

Real name: eddiefreenode

Password: zncserverpassword (I have also tried the ZNC fallback method of username/network:password with similar results).

I then select my server in the 'add conversation' part of the app, and type a room I want to join - clicking on the room simply shows the green 'Connecting to Freez...' box and never goes any further than that.

My ZNC server is accessible from the outside world, and as far as I am aware is configured correctly. Chatter connects just fine to normal IRC networks (such as Freenode).

There is an error in the log:

phablet@ubuntu-phablet:~/.cache/upstart$ tail application-click-chatter.robert-ancell_chatter_19.log
qml: CLOSED
qml: ircs://znc.piecemaker.rocks:1025 < PASS (hidden)
qml: ircs://znc.piecemaker.rocks:1025 < NICK eddie/freenode
qml: ircs://znc.piecemaker.rocks:1025 < USER chatter,0,*,:eddie
ERROR << QAbstractSocket::SocketError( 13 )
DISCONNECTED
qml: CLOSED
qml: ircs://znc.piecemaker.rocks:1025 < PASS (hidden)
qml: ircs://znc.piecemaker.rocks:1025 < NICK eddie/freenode
qml: ircs://znc.piecemaker.rocks:1025 < USER chatter,0,*,:eddie

Revision history for this message
Robert Ancell (robert-ancell) wrote :

The socket error is indicating Chatter failed the SSL handshake. The server uses a self signed certificate, so I suspect you need to add the certificate to your phone (don't know how to do this).

I'll investigate how this failure should be handled (i.e. more information logged, tell the user, allow the user to accept the certificate etc).

Revision history for this message
Edward Baxter (pieceredd) wrote :

That makes sense, thanks!

I've switched it over to a Letsencrypt cert, which thankfully seems to have fixed the socket error :D It would be great to see a more informative failure in the UI.

Revision history for this message
Edward Baxter (pieceredd) wrote :

On the other hand, I would quite like to see more support for ZNC configurations - at the moment the client seems to connect to only a single network on my bouncer, even when I create seperate 'servers' for them, but that would be a seperate feature request!

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Please file bugs for any missing features!

Changed in chatter:
status: New → Triaged
importance: Undecided → Medium
summary: - Can't connect to ZNC bouncer
+ No error / options shown when fail to make SSL connection
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.