Commit 13721ddd authored by Ralf Haferkamp's avatar Ralf Haferkamp Committed by Sandro Knauß

Recreate full URLs from partial URLs

With applied it might happen that e.g.
the "remoteid" of an Event is not containing the hostname and schem
components of the Events URL. In order for deletes and updates to work
correctly we need reconstruct the full URL before sending any (non
multi-get) requests.

Related Bug:

Reviewers: #kde_pim, knauss

Reviewed By: #kde_pim, knauss

Subscribers: knauss, #kde_pim

Tags: #kde_pim

Differential Revision:

BUG: 386985
FIXED-IN: 5.7.0
parent 6d0d9892
......@@ -189,6 +189,12 @@ KDAV::DavUrl Settings::configuredDavUrl(KDAV::Protocol proto, const QString &sea
if (!finalUrl.isEmpty()) {
fullUrl = QUrl::fromUserInput(finalUrl);
if (finalUrl.startsWith(QLatin1Char('/')) ) {
QUrl searchQUrl(searchUrl);
} else {
fullUrl = QUrl::fromUserInput(searchUrl);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment