Bug 43569 - EDITING: Undeletable fields in converted MS Word document
Summary: EDITING: Undeletable fields in converted MS Word document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.4.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 02:15 UTC by semianm@pokrok.cz
Modified: 2014-02-24 10:04 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Examle of converted MS Word document with 2 fields, mergefield and IF field (can`t be deleted). (25.54 KB, application/vnd.oasis.opendocument.text-flat-xml)
2011-12-07 02:15 UTC, semianm@pokrok.cz
Details
MS Word .doc with Conditional Field (19.50 KB, application/msword)
2012-01-22 23:51 UTC, semianm@pokrok.cz
Details
56010 .doc saved as .odt (9.43 KB, application/vnd.oasis.opendocument.text)
2012-01-22 23:52 UTC, semianm@pokrok.cz
Details
.doc with Fields saved as .odt under OOo 3.2.1 (8.39 KB, application/vnd.oasis.opendocument.text)
2012-01-25 06:42 UTC, famo
Details

Description semianm@pokrok.cz 2011-12-07 02:15:32 UTC
Created attachment 54173 [details]
Examle of converted MS Word document with 2 fields, mergefield and IF field (can`t be deleted).

Problem description: 

After converting MS Word document to odt, conditional fields can`t be deleted or modified. After saving as plain xml, I found this node causes the problem:

<field:fieldmark-start text:name="__Fieldmark__174_316795990" field:type=""/><field:fieldmark-end/>


Steps to reproduce:
1. Create MS Word document with conditional field "IF"
2. Open in LibreOffice Writer
3. try to edit field


Platform (if different from the browser): 
              
Windows
Comment 1 Thomas Hackert 2012-01-22 07:57:15 UTC
Hello Matěj, *,
I can confirm it with Debian Testing AMD64 and the Germanophone version of LO 3.5.0 RC1 ... :( If I choose to insert text in the marked field, I get the error message (roughly translated) "The cursor or the selection is in an write protected area. A change cannot be accepted." ... :(
HTH
Thomas.
Comment 2 famo 2012-01-22 13:10:33 UTC
I don't what to do with the attached document, it is surely not an ODT document.

Could you (Matěj or thackert) upload a MS Word with the described fields in your comment?
(Not everyone has MSO to create this file for himself.)

This way we can test the conversion and the possible problems.
Comment 3 semianm@pokrok.cz 2012-01-22 23:51:21 UTC
Created attachment 56010 [details]
MS Word .doc with Conditional Field
Comment 4 semianm@pokrok.cz 2012-01-22 23:52:58 UTC
Created attachment 56011 [details]
56010 .doc saved as .odt
Comment 5 famo 2012-01-25 06:18:32 UTC
Thanks Matěj.

OK, I can reproduce this now under LO 3.4 and 3.5.

However, notice that the problem is not within the conversion from .doc to odt., the field (and its whole paragraph) is already not editable in the .doc, if opened with LO 3.4/3.5.

I checked the .doc and your .odt also with OOo 3.2.1, in both cases the field text is editable - though the field is not recognized as a field but as simple text.

Setting Status to NEW
Adding Keyword regression (although I'm not so sure about it).
Comment 6 famo 2012-01-25 06:42:43 UTC
Created attachment 56144 [details]
.doc with Fields saved as .odt under OOo 3.2.1
Comment 7 sasha.libreoffice 2012-02-13 07:46:21 UTC
If in Word select "Show field codes" then it shows:
{ IF 1 = 1 "test1" "test2" \* MERGEFORMAT }
Comment 8 domingo.sacristan 2014-02-24 10:04:13 UTC
I can confirm this Bug, tested with Libreoffice 4.2.1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.