coi-dev / ox-coi

OX COI Messenger - a Flutter app for the COI (Chat Over IMAP) standard
https://coi-dev.org
Mozilla Public License 2.0
176 stars 20 forks source link

"Login failed" without any further information #617

Open phil294 opened 4 years ago

phil294 commented 4 years ago

Describe the bug When I log in with my custom mail server configuration, very similar to #162 (same ports), the only error message I see is "Login failed". It should work however, my provided login information is definitely correct. But the more immediate problem here is that there doesnt seem to be a way to see the cause of the failure (see screenshot below)

To Reproduce Occurrence: always Steps to reproduce the behavior: This will be somewhat verbose as the behavior varies from case to case. The main issue is with point 1:

  1. Normal login with custom information:

    • Configure mail settings: Manual settings
    • Custom mail server from https://lima-city.de. See screenshot below for connection details
    • Insert correct credentials and mail address, click "Sign in"
    • Expected behavior: successful login
    • Acutal behavior: Loading progress continues until 86.0%, then error "Login failed" without details
  2. Same with detailed information:

    • Insert complete detailed information, including ports
    • Expected / actual behavior: same as 1.
  3. Endless loading screen with invalid password:

    • Insert wrong password, then sign in
    • Expected behavior: Error: Invalid credentials
    • Actual behavior: Loading progress continues until 65.0%, then stops and loads forever, not even an error message. Need to kill the app.
  4. Without specifying mail server addresses (they do not match the email address domain name):

    • Remove mail server entries
    • Expected behavior: Error: Could not connect to server
    • Actual behavior: Loading progress continues until 80.0%, then error "Login failed" without details
  5. With IMAP TLS port:

    • Insert correct mail servers and password like step 1
    • Set IMAP port to 143, leave IMAP Security at "Automatic", then sign in
    • Expected behavior: Same as 1, as lima-city seems to accept port 143 via TLS
    • Actual behavior: Loading progress continues until 86.0%, then error "Login failed" with detailed message (yey!) Could not connect to mail.lima-city.de:143: async_native_tls: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:332:

Screenshots Login error: Login error

lima-city.de login information: lima-city login info

App information (please complete the following information):

Smartphone (please complete the following information):

Additional context Interestingly, I faced very similar issues with Delta Chat: I could not connect with the lima-city mail server either. In that case, I got the error message that the SMTP connection to port 25 was rejected – even when I typed in SSL/465 which sounds very much like #162 too. But that issue was fixed, it seems. And this isnt Delta Chat, so probably not related.

Internal Bug Tracker.

Boehrsi commented 4 years ago

Thanks for this report. This level of comprehensiveness is pretty pretty rare. That you face something similar with Delta Chat makes totally sense, as we are using the same core / backend under the hood (https://github.com/open-xchange/flutter-deltachat-core) 👍 .