https://bugs.kde.org/show_bug.cgi?id=452978
Bug ID: 452978
Summary: URL parsing broken if URL includes port number (or
address is IPv6)
Product: konsole
Version: 22.04.0
Platform: unspecified
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
This was introduced with the recent upgrade of Konsole to 22.04.0. Konsole
21.12.3 was working fine.
It now fails to parse URLs which include a port number. When pressing CTRL and
clicking the link, it only matches the URL until the first colon character,
leaving out the rest of the URL, namely the port number, as well as anything
that comes afterwards, aka. path, query and hash.
STEPS TO REPRODUCE
1. http://localhost
2. http://localhost/foo
3. http://127.0.0.1/foo
4. http://localhost:8888
5. http://localhost:8888/foo
6. http://127.0.0.1:8888/foo
7. http://[2a00:1450:4001:829::200e]/
8. http://[2a00:1450:4001:829::200e]:80/
OBSERVED RESULT
1-3 work
4-6 don't work
7-8 also don't work, but I'm not sure if this was working previously
SOFTWARE/OS VERSIONS
Linux: 5.17.4
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
ADDITIONAL INFORMATION
After searching for recent commits in Konsole's git repo in regards to URL
parsing, I found these changes which added some distinctions between local file
paths and URLs. Maybe it's related to the issue, but I am not sure, as I'm not
familiar with Konsole's code at all.
https://invent.kde.org/utilities/konsole/-/commits/v22.04.0/src/filterHotSpots
--
You are receiving this mail because:
You are watching all bug changes.