[Libreoffice-bugs] [Bug 122186] New: FILESAVE: Input fields saved in DOCX get corrupted

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Dec 19 06:34:06 UTC 2018


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

            Bug ID: 122186
           Summary: FILESAVE: Input fields saved in DOCX get corrupted
           Product: LibreOffice
           Version: 4.0.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:docx
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: baron at caesar.elte.hu
            Blocks: 104523

Created attachment 147658
  --> https://bugs.documentfoundation.org/attachment.cgi?id=147658&action=edit
Sample ODT

The attached ODT contains an 'Input list' and an 'Input field', both added to
an empty document via Insert -> Field -> More fields... / Functions Tab.
This bug report is about what happens if the sample is saved as DOCX, and
opened in Writer / Word.
Note that Writer currently has limited support for Word's different types of
form controls, this issue is just about patching up the export code to produce
reasonably working controls.

In Word, for legacy form elements (the ones these are supposed to be exported
as) to be fillable, 'Restrict Editing' has to be set with 'Editing
restrictions' set to only allow 'Filling in forms'. In Writer the corresponding
setting is a compatibility option: 'Protect Form' in Options -> LibreOffice
Writer -> Compatibility. In Writer the form elements can be filled even if the
'Protect Form' compatibility option isn't set.


Thus the expected behavior would be the following:

1. If compatibility option 'Protect Form' is not set during save:
 a. In Writer the input fields should be fillable as is, the text should be
editable.
 b. In Word the input fields should be fillable after setting 'Editing
restrictions' to 'Filling in forms'.

2. If compatibility option 'Protect Form' is set during save: 
 a. Both in Writer and Word the text should read-only, but the input fields
should be fillable.


Actual behavior:

1.a. In Writer the list remains, but no entries can be selected, the field
disappears.
1.b. In Word the field disappears, the list seems to be editable after
restricting to 'Filling in forms' (might still be corrupted, didn't check in
detail).

2.a. In Writer the document is a single read-only region that otherwise is
similar to 1.a. In Word the document is restricted, but the whole region is
editable (input list doesn't work, and the field disappears in this case as
well).


Observed using LO 6.3.0.0.alpha0+ (2018-12-18,
2b9739b9b009de93efa4f24995469c3bb9d82261) & 4.0.0.3 / Windows 7.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=104523
[Bug 104523] [META] DOCX (OOXML) ActiveX and Legacy form control related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181219/3c2625cc/attachment-0001.html>


More information about the Libreoffice-bugs mailing list