Bug 502179

Summary: Can't connect Nextcloud with Online Accounts due to wrong URI
Product: [Frameworks and Libraries] KAccounts Reporter: Denys Madureira <denysmb>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: admin, natalie_clarius
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Denys Madureira 2025-03-29 21:42:10 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When trying to connect a Nextcloud account through Online Accounts, we can't pass from the "Grant Access" step, it keeps loading forever. Checking the log in my Nextcloud instance I can see that this is due a typo in the URI.
I have this on the log: "Requested uri (/remote.phpp/webdav) is out of base uri (/remote.php/webdav/)"
As we can see, there is an additional "p" (in the end of remote.php) on the URI that KDE tries to access.

STEPS TO REPRODUCE
1. Go to Online Accounts and try to add Nextcloud integration
2. Log in and try to grant access
3. Grant access stay loading forever and you receive this message on the Nextcloud log

OBSERVED RESULT
Grant access stay loading forever and we can't add Nextcloud account

EXPECTED RESULT
We are able to grant access and integrate our Nextcloud account through Online Accounts

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250321
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 31,2 GiB of RAM
Graphics Processor: AMD Radeon RX 6400

ADDITIONAL INFORMATION
I can grant access to the Nextcloud desktop app with no problem, the same for the android apps and all other apps/websites. This error only happens with the Online Accounts.
Comment 1 Denys Madureira 2025-03-29 22:01:51 UTC
I discovered the error. It was on my server. For some reason, this was affecting only Online Accounts.
I had, on config.php, 'overwritewebroot' => '/', changing it to 'overwritewebroot' => '', fixed the issue.