https://bugs.kde.org/show_bug.cgi?id=430894

--- Comment #16 from boingo-00 <boingo...@ya.ru> ---
I guess I found the problem:
Plasma add URL like webdavs://user@host/remote.php/dav/files/user
But Nextcloud need URL like webdavs://host/remote.php/dav/files/user
I maybe found the root of problem, but I'm not a programmer
In file
https://invent.kde.org/network/kaccounts-integration/-/blob/master/src/plugins/kio-webdav/kioservices.cpp
two places, that caught my attention:
First is lines 163-167
    QUrl url; // <- if this is url composer
    url.setHost(host);
    url.setUserName(username); // <- this is unnecessary 
    url.setScheme(QStringLiteral("webdavs"));
    url.setPath(path);
Second is lines 198-204
    QString walletUrl(url.scheme());
    walletUrl.append(QStringLiteral("-"));
    walletUrl.append(username);  // <- unnecessary
    walletUrl.append(QStringLiteral("@"));
    walletUrl.append(url.host());
    walletUrl.append(QStringLiteral(":-1-"));
I am not developer, and I don't know details about how user credentials is sent
to Nextcloud server, but I know that without username in URL everything works
as it should. Correct me if I wrong, will appreciate some technical details

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to