Bug 904897

Summary: [docx] writer fails to save any text following a hyperlink on export to docx
Product: [Fedora] Fedora Reporter: John <johnthehammer23>
Component: libreofficeAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: caolanm, dtardon, erack, ltinkl, mstahl, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-01 22:26:58 UTC Type: Bug
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
Good ODT file. none

Description John 2013-01-28 03:46:56 UTC
Created attachment 688735 [details]
Good ODT file.

Description of problem:
When editing a docx formated file, inserting a hyperlink with a pound sign (#) causes everything after the hyperlink to vanish after saving, closing, and reopening the file. 

Version-Release number of selected component (if applicable):
3.5.7.2

How reproducible:
Always

Steps to Reproduce:
1.Create or save a file in docx format.
2.Insert a hyperlink with a pound sign into the document. For example, simply copy and paste the following link into a document: http://windows.microsoft.com/en-US/windows/service-packs-download#sptabs=win8
3.Enter more text after the hyperlink.
4.Save the document.
5.Close the document.
6.Open the document.
  
Actual results:
Any text entered after the hyperlink is not saved even though LOWriter seems to be saving everything. In addition, the hyperlink is either truncated by one character or entirely deleted. Each subsequent save will truncate the link one additional character. Any text before the hyperlink is retained.

Expected results:
Everything in the document should be saved.

Additional info: Seems not to be an issue when using the odt format. Try saving the attached odt file as docx to see the issue in action. Remember to close it and reopen it to see the effect.

Comment 1 David Tardon 2013-01-31 14:05:23 UTC
Seems to be fixed in 3.6. Because it is a data loss, I am going to find and backport the fix.

Comment 2 Fedora Update System 2013-03-23 13:33:08 UTC
libreoffice-3.5.7.2-10.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/libreoffice-3.5.7.2-10.fc17

Comment 3 Fedora Update System 2013-03-24 00:05:26 UTC
Package libreoffice-3.5.7.2-10.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libreoffice-3.5.7.2-10.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-4337/libreoffice-3.5.7.2-10.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-01 22:27:00 UTC
libreoffice-3.5.7.2-10.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.