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

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |me...@kde.org
           Keywords|                            |regression
             Status|REPORTED                    |CONFIRMED

--- Comment #2 from Nate Graham <n...@kde.org> ---
This appears to have been caused by
https://invent.kde.org/frameworks/kio/-/commit/ca5e0796f84c37efe69f323f0072a601af34abbf.

In that commit,
> QUrl partial_url;
> partial_url.setPath(partial_name);
Got changed to:
> QUrl partial_url(partial_name);

But that seems wrong, because it's creating a QUrl from a string and the QUrl
documentation (https://doc.qt.io/qt-6/qurl.html#QUrl-2) says doing this "Will
construct a valid URL but it may not be what one expects", and that's exactly
what's happening here. The "Hello:" at the beginning of the string is
interpreted by the QUrl constructor as a URL scheme, so it helpfully lowercases
it for us generates a relative QUrl with an invalid scheme that points to
nothing.

Simply reverting to the old code here fixes the issue without regressing Bug
459485.

That commit was backported to KF5 so this needs quick attention.

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

Reply via email to