"Remove Hyperlink" feature causes text duplication and corruption when removing email hyperlinks inside angle brackets

Bug #1987579 reported by Aaron Rainbolt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This may be the single weirdest bug report I've ever made.

Steps to Reproduce:
1: Open LibreOffice Calc.
2: In any cell of the spreadsheet, type:

       <email address hidden>

   The email address placed inside the angle brackets can be whatever you want, but the angle brackets are necessary for the bug to surface (at least usually).
3: Press Enter. The email address will automatically be turned into a hyperlink.
4: Right-click the automatically created hyperlink, and click "Remove Hyperlink".

Expected result:
The actual text of the cell should remain unchanged, but the hyperlink itself should be removed.

Actual result:
The text within the cell morphs into the following:

    <<email address hidden>@example.com

The second copy of the text is not hyperlinked, but the first copy of the text remains hyperlinked. And yes, the second angle bracket disappears.

Right-clicking the leftover hyperlink and clicking "Remove Hyperlink" again results in the text morphing into the following:

    <<email address hidden>@<email address hidden>

Notice the "m" of ".com" is missing in the second copy. The first copy remains hyperlinked. Clicking on some other cell on the sheet immediately after this second "Remove Hyperlink" will result in the "<email address hidden>" part of the text becoming its own hyperlink, while clicking on the cell containing the corrupted text first and then clicking elsewhere will result in only the first copy of the text being a hyperlink.

Notes:

The bug can be worked around by double-clicking on the hyperlinked text, *then* right-clicking the link and clicking "Remove Hyperlink".

I think I was able to get the bug to occur without the angle brackets once, but I wasn't able to make it happen again.

I do not yet know if this bug occurs on anything except Ubuntu 22.04 (I just discovered it while using LibreOffice for a project). I will do more thorough testing if necessary and add any new findings as comments.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libreoffice-calc 1:7.3.5-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 24 21:39:32 2022
InstallationDate: Installed on 2022-04-07 (139 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no username)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.