Bug 431948 - Unable to add new imap account using auto detection
Summary: Unable to add new imap account using auto detection
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-22 18:19 UTC by Geert Janssens
Modified: 2021-01-22 18:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Details of the failing "Setting up Account" page (87.92 KB, image/png)
2021-01-22 18:19 UTC, Geert Janssens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geert Janssens 2021-01-22 18:19:58 UTC
Created attachment 135067 [details]
Details of the failing "Setting up Account" page

SUMMARY
I'm trying to set up a new imap account in kmail for a GMail account. The account wizard offers to detect the proper settings and seems to do so successfully.

However when I click the "Next" button  on the "Secure your communication" page, I immediately get the error
"Failed to set up the account"

When starting kmail from the command line to get console output, I notice the following error printed in the terminal:
org.kde.pim.accountwizard: Did not find D-Bus method:  "setAuthentication"  available methods are:
org.kde.pim.accountwizard: "destroyed(QObject*)"
org.kde.pim.accountwizard: "destroyed()"
org.kde.pim.accountwizard: "objectNameChanged(QString)"
org.kde.pim.accountwizard: "deleteLater()"
org.kde.pim.accountwizard: "_q_reregisterTimers(void*)"
org.kde.pim.accountwizard: "_q_serviceOwnerChanged(QString,QString,QString)"
org.kde.pim.accountwizard: Impossible to convert argument :  QVariant(int, 9)


STEPS TO REPRODUCE
1. Open kmail
2. Choose settings "Add Account..."
3. Enter credentials for a gmail e-mail address (may be an issue with any imap account for which the server data is in the Mozilla database, I have only tested with a gmail account)
4. Enable "Find provider settings on the internet" if not enabled
5. Click next
6. Click "Add Account"
7. Click "Next" again

OBSERVED RESULT
After step 5. the assistant will properly show the discovered server addresses for the provided e-mail address.
After step 6. the console error messages as mentioned above are printed. The assistant will at this point be showing the "Secure your Communication" page and doesn't show any signs of failure, although the console suggests something went wrong already at this point.
After step 7. the "Setting up Account" page appears and it immediately states "Failed to set up account."

I'll attach a screenshot with the details on this page.

Note this is with kmail 5.15.2, which is no longer in the list above, but it's what is currently comes with an up to date  Fedora 32 system.

EXPECTED RESULT
Account gets configured successfully.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.75.0
Qt Version: 5.14.2
Kmail2 version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Geert Janssens 2021-01-22 18:23:21 UTC
Note if I try the manual method (without automatic detection of servers) I get to the Setting up Account page without console errors. However it eventually will fail as well on that page with the following console output:
org.kde.pim.accountwizard: Did not find D-Bus method:  "setAccountIdentity"  available methods are:
org.kde.pim.accountwizard: "destroyed(QObject*)"
org.kde.pim.accountwizard: "destroyed()"
org.kde.pim.accountwizard: "objectNameChanged(QString)"
org.kde.pim.accountwizard: "deleteLater()"
org.kde.pim.accountwizard: "_q_reregisterTimers(void*)"
org.kde.pim.accountwizard: "_q_serviceOwnerChanged(QString,QString,QString)"
org.kde.pim.accountwizard: Impossible to convert argument :  QVariant(int, 1340438214)

That is not the same error though seemingly in the  same area.