Forwarded from Debian BTS https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750995 When connecting to an IMAP server over SSL, if the server has an invalid certificate then the user cannot cancel the connection as the dialog keeps reappearing Reproducible: Always Steps to Reproduce: 1. Connect to an IMAP server which has an invalid SSL certificate 2. When the dialog advising of the invalid SSL certificate appears, select the Cancel option Actual Results: The dialog reappears Expected Results: The dialog does not re-appear and the connection is aborted
Created attachment 87085 [details] kdepimlibs_tlscancelled.patch Adds new error code ERR_SSL_FAILED to kimap
Created attachment 87086 [details] kdepim-runtime_tlscancelled.patch Adds handling of ERR_SSL_FAILED to kdepim-runtime
The cause AFAICT is that kdepimlibs does not provide a separate error code for the scenario and so kdepim-runtime does not handle it correctly. The above patches change the behaviour so that if the user cancels the connection then it is marked as 'broken'. Unfortunately I couldn't find a way to present the dialog which is used when the username/password is rejected (which provides a button which links to the account settings). The patches do however solve the problem of the endless loop which effectively forces the user to accept the invalid certificate at present.
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present? If noone confirms this bug for a Framework-based version of kdepim (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.