Bug 1955475

Summary: Truncated hostnamectl line makes the rest of the terminal output a URL
Product: [Fedora] Fedora Reporter: Anthony Perkins <anthony>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: anthony, fedoraproject, filbranden, flepied, kasong, lnykryn, msekleta, ssahani, s, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-248.2-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-11 02:08:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot showing the issue none

Description Anthony Perkins 2021-04-30 08:12:31 UTC
User-Agent:       Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Build Identifier: 

In a default 80x24 gnome-terminal window, the "Operating System" line of hostnamectl is truncated to "Fedora 34 (Workstation Editio…" and is a clickable hyperlink. But it looks like the truncation of the operating system name cuts off the "closing tag" of the hyperlink, so every line of text following this is also a hyperlink, including the prompt and output of other programs.

Reproducible: Always

Steps to Reproduce:
1. Set window size to 80x24.
2. Run 'hostnamectl'.
3. Right click any line that is underlined and note the presense of the "Open Hyperlink" option.
Actual Results:  
All lines following the truncated Operating System name are hyperlinks. The only way to stop this seems to be to close the terminal window.

Expected Results:  
Only the operating system name should be a hyperlink.

This happens on a fully-patched Fedora 34 Workstation Edition install as of 2021-04-29.

Comment 1 Anthony Perkins 2021-04-30 08:14:18 UTC
Created attachment 1777622 [details]
Screenshot showing the issue

Comment 2 Zbigniew Jędrzejewski-Szmek 2021-05-04 08:25:21 UTC
Most likely caused by https://github.com/systemd/systemd/commit/822be62fb2.

Comment 3 Yu Watanabe 2021-05-04 09:18:01 UTC
I have not tested it, but I hope https://github.com/systemd/systemd/pull/19499 fixes this issue.

Comment 4 Fedora Update System 2021-05-08 09:17:22 UTC
FEDORA-2021-775e2373a1 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-775e2373a1

Comment 5 Fedora Update System 2021-05-09 02:20:02 UTC
FEDORA-2021-775e2373a1 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-775e2373a1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-775e2373a1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-05-11 02:08:11 UTC
FEDORA-2021-775e2373a1 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.