Bug 488389

Summary: Cannot Re-Attempt Log In
Product: [Applications] Tokodon Reporter: Nicco Kunzmann <niccokunzmann>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: grave CC: carl, josh
Priority: NOR    
Version: 24.02.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of window that I see

Description Nicco Kunzmann 2024-06-11 22:21:24 UTC
Created attachment 170394 [details]
screenshot of window that I see

SUMMARY

I opened Tokodon again and it did not log in. Instead, it show that I can Re-Attempt Login but that does nothing.


STEPS TO REPRODUCE
1. Login
2. Maybe join a wifi that messes with HTTPS or blocks
3. Login fails when again in a good wifi.

OBSERVED RESULT

I click on the "Re-Attempt Log In" button and nothing happens.

```
Qt: Session management error: Could not open network socket
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
kf.kirigami: OverlayZStacking must be attached to a Popup
qrc:/qt/qml/org/kde/tokodon/content/ui/UserInfo.qml:101:21: QML Separator: Possible anchor loop detected on horizontal anchor.
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/accounts/verify_credentials")
qrc:/qt/qml/org/kde/tokodon/content/ui/LoginFlow/LoginIssuePage.qml:14:1: QML LoginIssuePage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/formcard/FormTextDelegate.qml:83:9: QML ContentItemLoader: List didn't append all objects
qrc:/qt/qml/org/kde/tokodon/content/ui/LoginFlow/LoginIssuePage.qml:14:1: QML LoginIssuePage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/formcard/FormTextDelegate.qml:83:9: QML ContentItemLoader: List didn't append all objects
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/preferences")
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/follow_requests")
qrc:/qt/qml/org/kde/tokodon/content/ui/LoginFlow/LoginIssuePage.qml:14:1: QML LoginIssuePage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/formcard/FormTextDelegate.qml:83:9: QML ContentItemLoader: List didn't append all objects
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/accounts/verify_credentials")
qrc:/qt/qml/org/kde/tokodon/content/ui/LoginFlow/LoginIssuePage.qml:14:1: QML LoginIssuePage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/formcard/FormTextDelegate.qml:83:9: QML ContentItemLoader: List didn't append all objects
qrc:/qt/qml/org/kde/tokodon/content/ui/LoginFlow/LoginIssuePage.qml:14:1: QML LoginIssuePage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/formcard/FormTextDelegate.qml:83:9: QML ContentItemLoader: List didn't append all objects
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/preferences")
org.kde.tokodon.http: QVariant(int, 401) QUrl("https://toot.wales/api/v1/follow_requests")
```

toot.wales runs mastodon 4.2.9 at this moment.

EXPECTED RESULT

I went though this authentication process at the start and I would expect the browser to open for the OAuth process but nothing happens.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Flatpak

ADDITIONAL INFORMATION

When I click on View Website, the browser opens and I am logged in.
Comment 1 Joshua Goins 2024-07-06 16:18:59 UTC
Yes, unfortunately this button only works in some limited circumstances that I'm still working on communicating. 

However, now I added a button to log out on this page: https://invent.kde.org/network/tokodon/-/commit/44887f0dd7b577011e0b22d58e06f0cb84377a2a which will show up in 24.08. In the future I want to make it easier to re-authorize, more like what you imagined. Not closing until that's done though :)
Comment 2 Nicco Kunzmann 2024-07-07 12:48:57 UTC
Wow, thank you! I will wait for the release on flathub :)