Bug 1955475 - Truncated hostnamectl line makes the rest of the terminal output a URL
Summary: Truncated hostnamectl line makes the rest of the terminal output a URL
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 34
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-04-30 08:12 UTC by Anthony Perkins
Modified: 2021-05-11 02:08 UTC (History)
12 users (show)

Fixed In Version: systemd-248.2-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-05-11 02:08:11 UTC
Type: ---

Attachments (Terms of Use)
Screenshot showing the issue (53.25 KB, image/png)
2021-04-30 08:14 UTC, Anthony Perkins
no flags Details

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.

Note You need to log in before you can comment on or make changes to this bug.