Bug 142471 - hyperlink misdirection
Summary: hyperlink misdirection
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0 all versions
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 01:16 UTC by Ed Sharman
Modified: 2022-09-12 03:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (1.64 KB, text/plain)
2021-05-31 04:51 UTC, Ed Sharman
Details
(1) This bug occurs with .doc files, but not with .odt files. (2) I am supplying two .doc test files, TestFile1.doc and TestFile2.doc, and corresponding .odt files. I tested both these pairs residing (1.61 KB, text/plain)
2021-05-31 04:54 UTC, Ed Sharman
Details
Test file containing hyperlink (13.00 KB, application/msword)
2021-05-31 04:59 UTC, Ed Sharman
Details
Test file (.doc) containing bookmark (208.00 KB, application/msword)
2021-05-31 05:01 UTC, Ed Sharman
Details
Test file (.odt) containing hyperlink (14.16 KB, application/vnd.oasis.opendocument.text)
2021-05-31 05:01 UTC, Ed Sharman
Details
Test file (.odt) containing bookmark (195.53 KB, application/vnd.oasis.opendocument.text)
2021-05-31 05:02 UTC, Ed Sharman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Sharman 2021-05-25 01:16:42 UTC
When a hyperlink that exists in one writer document but points to a bookmark existing in a second writer document is activated with CTL-Click, it fails to set the cursor to the location of the bookmark in the second document to which it is pointing. If the second document is closed when the hyperlink is activated, the cursor is set to the top of the document; if open, the current cursor position is selected.
The correct function should be to set or move the cursor in the second document to the beginning of the hyperlinked bookmark, regardless of whether the second document is open or closed when the hyperlink is activated.
Tested in version 7.1.3.2; observed possibly as far back as version 6.0.
Comment 1 Roman Kuznetsov 2021-05-30 19:07:11 UTC
please attach these two documents or write step by step how to create it
Comment 2 Ed Sharman 2021-05-31 04:51:49 UTC
Created attachment 172467 [details]
test file

(1) This bug occurs with .doc files, but not with .odt files.
(2) I am supplying a .zip file TestFiles.zip containing two .doc test files, TestFile1.doc and TestFile2.doc, and corresponding .odt files. I tested both these pairs residing in a subdirectory named 'Hyperlink bug'. I'm unsure, if the files reside in a differently named directory, the hyperlink with text '28345499' in TestFile1.doc may need to be removed and chosen to point anew to the bookmark labeled 'Mofidi17' in TestFile2.doc; same for the .odt files.
(3) Perform Test A as follows:
  (a) With TestFile2.doc closed, open TestFile1.doc.
  (b) Perform a  'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (c) Observe that TestFile2.doc opens with the cursor pointing to the top of the file, with page 1 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that when TestFile2.odt opens, the cursor points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
(4) Perform Test B as follows:
  (a) With TestFile1.doc closed, open TestFile2.doc.
  (b) Point the cursor to 'Middleton' on page 2.
  (c) Open TestFile1.doc
  (d) Perform a 'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (e) Observe that TestFile2.doc opens with the cursor pointing to the top of page 2, with page 2 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that after the 'CTL-LeftMouse Click' has been performed, the cursor in TestFile2.odt points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
Comment 3 Ed Sharman 2021-05-31 04:54:29 UTC
Created attachment 172468 [details]
(1) This bug occurs with .doc files, but not with .odt files. (2) I am supplying two .doc test files, TestFile1.doc and TestFile2.doc, and corresponding .odt files. I tested both these pairs residing

(1) This bug occurs with .doc files, but not with .odt files.
(2) I am supplying two .doc test files, TestFile1.doc and TestFile2.doc, and corresponding .odt files. I tested both these pairs residing in a subdirectory named 'Hyperlink bug'. I'm unsure, if the files reside in a differently named directory, the hyperlink with text '28345499' in TestFile1.doc may need to be removed and chosen to point anew to the bookmark labeled 'Mofidi17' in TestFile2.doc; same for the .odt files.
(3) Perform Test A as follows:
  (a) With TestFile2.doc closed, open TestFile1.doc.
  (b) Perform a  'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (c) Observe that TestFile2.doc opens with the cursor pointing to the top of the file, with page 1 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that when TestFile2.odt opens, the cursor points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
(4) Perform Test B as follows:
  (a) With TestFile1.doc closed, open TestFile2.doc.
  (b) Point the cursor to 'Middleton' on page 2.
  (c) Open TestFile1.doc
  (d) Perform a 'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (e) Observe that TestFile2.doc opens with the cursor pointing to the top of page 2, with page 2 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that after the 'CTL-LeftMouse Click' has been performed, the cursor in TestFile2.odt points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
Comment 4 Ed Sharman 2021-05-31 04:56:00 UTC
(1) This bug occurs with .doc files, but not with .odt files.
(2) I am supplying a zip file TestFiles.zip containing two .doc test files, TestFile1.doc and TestFile2.doc, and corresponding .odt files. I tested both these pairs residing in a subdirectory named 'Hyperlink bug'. I'm unsure, if the files reside in a differently named directory, the hyperlink with text '28345499' in TestFile1.doc may need to be removed and chosen to point anew to the bookmark labeled 'Mofidi17' in TestFile2.doc; same for the .odt files.
(3) Perform Test A as follows:
  (a) With TestFile2.doc closed, open TestFile1.doc.
  (b) Perform a  'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (c) Observe that TestFile2.doc opens with the cursor pointing to the top of the file, with page 1 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that when TestFile2.odt opens, the cursor points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
(4) Perform Test B as follows:
  (a) With TestFile1.doc closed, open TestFile2.doc.
  (b) Point the cursor to 'Middleton' on page 2.
  (c) Open TestFile1.doc
  (d) Perform a 'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
  (e) Observe that TestFile2.doc opens with the cursor pointing to the top of page 2, with page 2 being displayed.
  (d) Perform this same test with TestFile1.odt and TestFile2.odt.
  (e) Observe that after the 'CTL-LeftMouse Click' has been performed, the cursor in TestFile2.odt points to the bookmark labeled 'Mofidi17' and page 3 is displayed. This is the correct behavior in my opinion.
Comment 5 Ed Sharman 2021-05-31 04:59:38 UTC
Created attachment 172469 [details]
Test file containing hyperlink
Comment 6 Ed Sharman 2021-05-31 05:01:04 UTC
Created attachment 172470 [details]
Test file (.doc) containing bookmark
Comment 7 Ed Sharman 2021-05-31 05:01:51 UTC
Created attachment 172471 [details]
Test file (.odt) containing hyperlink
Comment 8 Ed Sharman 2021-05-31 05:02:29 UTC
Created attachment 172472 [details]
Test file (.odt) containing bookmark
Comment 9 raal 2022-02-12 16:21:54 UTC
Works for me with Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 1c0aa970650ffc7c749e0b5ea655ebb2d137c8ae
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo

(3) Perform Test A as follows:
  (a) With TestFile2.doc closed, open TestFile1.doc.
  (b) Perform a  'CTL-LeftMouse Click' on the hyperlink with text '28345499'.
-> testFile2.doc opens at page 3 [Mofidi]

Please could you test it with dev version?  You can download it here:
http://dev-builds.libreoffice.org/daily/master/
Thank you
Comment 10 QA Administrators 2022-08-12 03:50:42 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2022-09-12 03:40:45 UTC
Dear Ed Sharman,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp