https://bugs.kde.org/show_bug.cgi?id=438084
Bug ID: 438084 Summary: kaccounts-providers nextcloud provider strips path from URL causing it to fail Product: KAccounts Version: unspecified Platform: Neon Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: ad...@leinir.dk Reporter: k...@coginternet.net Target Milestone: --- SUMMARY I have my nextcloud hosted at https://www.coginternet.net/nextcloud/. Post authentication, kaccounts-providers nextcloud provider strips "/nextcloud/" from the URL causing the account to be created incorrectly. The authentication process is able to complete and the .desktop file is created in .local/share/remoteview/ however the URL contains the stripped version and therefore does not work. STEPS TO REPRODUCE 1. System Settings -> Online Accounts -> Add -> Nextcloud 2. Complete Authentication 3. In Dolphin, browse to Network, Nextcloud and click the added account. The account is invalid. journalctl reveals that the URL is correct throughout the authentication process and that the authentication completes. After that, the URL is suddenly stripped and requests start to fail. The cause might be https://invent.kde.org/network/kaccounts-providers/-/blame/master/plugins/nextcloud-ui/nextcloudcontroller.cpp#L204 where dav/host is populated using a concatenation of url.host() and "/remote.php.." which would result in this behaviour. OBSERVED RESULT URL is stripped of its path, from https://www.coginternet.net/nextcloud/ to https://www.coginternet.net post authentication. This invalid URL is used to create the account. EXPECTED RESULT URL is not stripped and the path as entered is used to create the account. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Neon 5.21 (kernel 5.8.0-55-generic) KDE Plasma Version: 5.21.5 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.