Bug 52175 - FILESAVE as .docx (MSO2007) URL containing "#" cuts away all contents after hyperlink
Summary: FILESAVE as .docx (MSO2007) URL containing "#" cuts away all contents after h...
Status: RESOLVED DUPLICATE of bug 51034
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.5.3 release
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 02:00 UTC by eponymousalias
Modified: 2012-07-17 06:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Document (19.85 KB, application/vnd.oasis.opendocument.text)
2012-07-17 06:56 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eponymousalias 2012-07-17 02:00:22 UTC
Under Tools > AutoCorrect Options > Options, turn on URL Recognition for both M and T.

Type the following into a new document:

This URL ( http://url/page#THRESHOLDFORMAT ) will cause soffice to truncate the document at nearly the end of the hash tag, thereby losing loads and loads of useful work.

Save the document in Microsoft Word 2007/2010 XML Format (that is, .docx).

Type Ctrl-W twice to exit LibreOffice.

Open the document.  Observe that the document is now cut off after "...FORMA".  The entire rest of the document is lost and can no longer be edited.  This also loses the page-format settings (page format reverts to A4; page margins are lost; footer setting and content is lost).  Quite possibly, other stuff is lost as well; this is just what I've noticed.

I consider this a Severity 1 issue because huge volumes of data (many, many pages, and many, many hours of careful work) can be lost without warning.
Comment 1 Rainer Bielefeld Retired 2012-07-17 06:35:14 UTC
[Reproducible] with "LibreOffice  3.5.5.3.  German UI/Locale [Build-ID: 7122e39-92ed229-498d286-15e43b4-d70da21] on German WIN7 Home Premium (64bit) 

Steps to reproduce:

You can simply save attached sample document as .docx (MSO2007) close and reopen 

or

0. Settings as per original report
1. Create a 6 pargagraphs Lorem Ipsum Document
2. after first Paragraph paste 
   "https://wiki.documentfoundation.org/BugReport_Details"
3. press <space>
   > URL will be recognized and becomes active
4 At the beginning of the line 2 lines later paste 
  "https://wiki.documentfoundation.org/BugReport_Details#Libreoffice" and
   press <space>
   > URL will be recognized and becomes active
5. At the beginning of the line 2 Lines later paste first URL
   "https://wiki.documentfoundation.org/BugReport_Details"
   press <space>
   > URL will be recognized and becomes active
6. Save as Word 2007/2010 XML Format (that is, .docx)
7. close document
8. reopen

MS WORD viewer will not accept document from step 7 as valid .docx, terminates with error message.

This one is a DUP of "Bug 51034 - FILESAVE: # in hyperlink corrupts docx file"

*** This bug has been marked as a duplicate of bug 51034 ***
Comment 2 Rainer Bielefeld Retired 2012-07-17 06:56:14 UTC
Created attachment 64298 [details]
Sample Document

See Comment 1