https://bugs.documentfoundation.org/show_bug.cgi?id=91417

            Bug ID: 91417
           Summary: FILEOPEN: docx HYPERLINK field code misinterprets \h
                    (history) switch
           Product: LibreOffice
           Version: 4.2.8.2 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 115759
  --> https://bugs.documentfoundation.org/attachment.cgi?id=115759&action=edit
test document showing the issue

Steps to reproduce:

1. In MS Word 2010, create a new document containing a hyperlink, save it as
.docx.

2. Extract the .docx, edit word/document.xml, find the hyperlink element,
change the w:history value to "0" or "false" or remove the w:history attribute,
re-pack the docx.

3. Open the result in Word, save-as with a different name to get a new copy.

Expected results: hovering over the link in LO Writer shows the hyperlink URL.

Actual results: hovering over the link in LO Writer shows the URL as "\h".

Analysis:

The .docx created after step 1 contains a w:hyperlink with w:history="1".

After step 3 the hyperlink is no longer saved as a w:hyperlink, but as a
HYPERLINK field with a \h switch. I'm attaching the resulting docx.

I don't know how documents like this happen in the wild, but a user sent me
one. I found one other reference to the \h switch online:
http://www.aspose.com/community/forums/thread/119680/problem-converting-hyperlinks-to-docx-format.aspx

I couldn't find any documentation about the \h switch, but the corresponding
w:history attribute is documented: http://officeopenxml.com/WPhyperlink.php

Originally reported against 4.2.8, reproduced with a current master build:

Version: 5.0.0.0.alpha1+
Build ID: 2a886adb500fe481e1ea61573551b19e99c55b8b
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time:
2015-05-20_00:31:27
Locale: en-US (en_US.UTF-8)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to