Bug 416036 - Error in changing server-side subscriptions if GSSAPI authentication is enabled
Summary: Error in changing server-side subscriptions if GSSAPI authentication is enabled
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-09 09:44 UTC by Stefan
Modified: 2020-12-08 12:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2020-01-09 09:44:24 UTC
SUMMARY
If GSSAPI authentication is enabled, changing of server-side subscriptions is only possible running the dialog via the main IMAP config dialog and not via context menu.

STEPS TO REPRODUCE
1. Create/Modify IMAP resource 
2. Enable GSSAPI authentication and server-side subscriptions
3. In KMail/Kontact click right on a folder of the IMAP resource
4. Click left on "Server-side subscriptions"

OBSERVED RESULT
Error dialog with following message:
"Log in failed, please configure the IMAP account before setting up server-side subscription"


EXPECTED RESULT
The server-side subscription dialog is shown


SOFTWARE/OS VERSIONS
Distribution: Ubuntu 18.04/KDE neon 5.17 User Edition
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Stefan 2020-01-09 09:59:57 UTC
(In reply to Stefan from comment #0)
> KDE Frameworks Version: 5.66.0
There is a typo. It should be 5.65.0
Comment 2 Szőts Ákos 2020-12-08 12:33:59 UTC
I can confirm it with Akonadi and KMail 20.08.3.

The difference is that the IMAP account settings page indeed appears but it is empty.

A similar report is Bug 389772, however, that's much older and that error doesn't seem to be the case now (possibly it can be closed?).

Logging akonadi and KMail with QT_LOGGING_RULES="*=true;qt.*=false" the logs are:

Akonadi:
- Account settings window:
org.kde.pim.imapresource: manage subscripts
org.kde.pim.imapresource: current auth mode:  "Gmail"
org.kde.pim.kimap: KIMAP::LoginJob(0x5565d13b3d20)
org.kde.pim.kimap: Connecting to IMAP server with no proxy
org.kde.pim.kimap: connectToHost "imap.gmail.com" 993
org.kde.pim.kimap: KIMAP::LoginJob(0x5565d13b3d20)
org.kde.pim.kimap: TLS negotiation done, the negotiated protocol is "TLSv1.3"
org.kde.pim.kimap: "Capability" "*"
org.kde.pim.kimap: Capabilities updated:  ("IMAP4rev1", "UNSELECT", "IDLE", "NAMESPACE", "QUOTA", "ID", "XLIST", "CHILDREN", "X-GM-EXT-1", "XYZZY", "SASL-IR", "AUTH=XOAUTH2", "AUTH=PLAIN", "AUTH=PLAIN-CLIENTTOKEN", "AUTH=OAUTHBEARER", "AUTH=XOAUTH")
org.kde.pim.kimap: "Capability" "A000001"
org.kde.pim.kimap: Trying authmod "XOAUTH2"
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
![SASL-XOAUTH2] - filling prompts
!org.kde.pim.kimap: sasl_interact
org.kde.pim.kimap: SASL_INTERACT id: 16386
org.kde.pim.kimap: SASL_CB_[USER|AUTHNAME]: ' "my-email-address@gmail.com" '
org.kde.pim.kimap: SASL_INTERACT id: 16388
org.kde.pim.kimap: SASL_CB_PASS: [hidden]
org.kde.pim.kimap: Trying authmod "XOAUTH2"
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
!org.kde.pim.kimap: "Login" "+"
org.kde.pim.kimap: sasl_client_step failed with: -1 "SASL(0): successful result: "
org.kde.pim.kimap: KIMAP::LoginJob(0x5565d13b3d20)

- Context menu:
org.kde.pim.akonadicontrol: Service "org.freedesktop.ReserveDevice1.Audio2" owner changed from "" to ":1.2066"

KMail:
- Account settings window:
<empty>

- Context menu:
kf.notifications: Calling notify on "Sound"
kf.notifications: Calling notify on "Taskbar"