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

Nicolas Fella <nicolas.fe...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.fe...@gmx.de

--- Comment #1 from Nicolas Fella <nicolas.fe...@gmx.de> ---
Hi,

The problem is the following: Chrome calls xdg-open, which calls kde-open5,
which uses KIO::OpenUrlJob internally. That uses QUrl everywhere to parse and
store urls. The problem is that QUrl internally sanitizes the hostname part of
the url (anything between the slack:// and the next /) and thereby converts it
to lowercase. Whether that behavior makes sense can probably debated a lot, but
it makes some kind of sense when thinking about the hostname in terms of a DNS
name.

Firefox does not use xdg-open for this and instead implements the opening
itself, which is why it works fine there.

I can think of three approaches to address this problem:
1. QUrl is changed to preserve uppercase letters in the hostname. Should be
technically doable, but my gut feeling tells me such a change would not be
accepted by the QUrl maintainers since the behavior makes some kind of sense.
Also it would take quite a while for the fix to arrive at end users
2. Rewrite OpenUrlJob to not use QUrl for this. This would require touching a
lot of code, including public API, and be quite complex, so I'd really like to
avoid that
3. Slack is changed to not use uppercase letters in the hostname part of the
URL or compares the received URL case-insensitively. This is IMHO the most
pragmatic and straight-forward solution, and there might be other systems that
behave like KDE does. However it's out of my control so I can't judge how
feasible it is

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

Reply via email to