Bug 126777

Summary: Frame + text box becomes corrupted when saved as DOCX
Product: LibreOffice Reporter: Aron Budea <aron.budea>
Component: WriterAssignee: Attila Bakos (NISZ) <bakos.attilakaroly>
Status: RESOLVED DUPLICATE    
Severity: normal CC: libreoffice
Priority: medium Keywords: filter:docx
Version: 4.4.0.3 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=126669
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104449, 104528    
Attachments: Sample DOCX (corrupted)

Description Aron Budea 2019-08-08 16:32:33 UTC
Created attachment 153240 [details]
Sample DOCX (corrupted)

This is somewhat similar to bug 126669, except the file was saved as DOCX and reloaded between inserting the frame and the text box.

- Add a frame to an empty document.
- Save it as DOCX, and reopen the document.
- Add a text box inside the frame, and at least one character in the text box so it persists.
- Save it again (as DOCX), and open the file in Word.

=> Word refuses to open the file (details: Unspecified error).

Attaching a corrupted sample DOCX.

Observed using LO 6.3.0.3 & 4.4.0.3 / Windows 7.
Comment 1 Aron Budea 2019-08-08 16:36:40 UTC
(In reply to Aron Budea from comment #0)
> - Add a frame to an empty document.
Note that if the frame is added to the top of the text area, it will trigger bug 117692, so if you insert the frame using the dialog, move it down a bit, or insert it interactively.
Comment 2 Durgapriyanka 2019-08-09 21:30:19 UTC
Thank you for reporting the bug. I can confirm the bug present in

Version: 6.3.0.0.alpha0+
Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

and 

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 NISZ LibreOffice Team 2020-11-30 12:24:12 UTC
Saving a Writer-made new frame to docx converts it into a textbox (but why...).

Word on the other hand does not allow embedding a textbox into a textbox, so it's no surprise it cannot read a similar construct made by Writer.
Comment 4 Attila Bakos (NISZ) 2021-07-01 13:58:06 UTC

*** This bug has been marked as a duplicate of bug 121509 ***