Bug 452262 - Konsole fails on long escaped urls
Summary: Konsole fails on long escaped urls
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 21.12.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 13:09 UTC by TeXHaPb
Modified: 2022-11-04 00:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: v22.04.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TeXHaPb 2022-04-04 13:09:23 UTC
SUMMARY
***
If you try to print long url with ESC symbols, Konsole just hangs
***


STEPS TO REPRODUCE
1. Run command printf '\e]8;;http://example.com/s/readall/app/discover#/?qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwerty\e\\kde\e]8;;\e\\\n'
2. Konsole hangs.
3. If you reduce url - all is good

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Matan Ziv-Av 2022-04-05 20:58:29 UTC
I expect that this is the same as https://bugs.kde.org/show_bug.cgi?id=432804 which is fixed in https://invent.kde.org/utilities/konsole/-/commit/96a18a9b7f651e27da99f8b483d84fdb9a1a1e62

But in fact, I cannot reproduce this bug. The printf does not hang konsole, though it does not print kde, as it does with the patch.
Comment 2 ninjalj 2022-11-04 00:52:48 UTC
Whether it hangs depends on the shell used and shell configuration. On ksh you may need to type ESC + \ to unhang konsole. bash invoked as sh seems to hang harder: I've not found a way to unhang it.