Apache OpenOffice (AOO) Bugzilla – Issue 119803
After upgrading to 3.4 RTF User Fields are not saving
Last modified: 2012-07-25 09:05:01 UTC
Document in RTF format from versions < 3.4 have all of the user fields present. Opening the RTF in version 3.4 initially shows the user fields, however after saving the file in same format and reopening the RTF User Fields are missing.
To duplicate: Create a rtf document with a version < 3.4. Menu Options Insert -Field --Other ---User Fields At this point the variable list is shown. Insert a new variable and click the green check. The variable shows up in the list and appears to be saving. Insert the variable into the document to use it. Close the doc and reopen. When the document reopens the variable is not present and is de-referenced in the doc. This appears to be a critical error. This function is used by many developers along with UNO to published merged documents. Resolution: Downgrade OpenOffice to <3.4.
Check with AOO 3.4, When i create a user fields and save the file to RTF file, then save and reload this file, the user fields missing. So this should a bug in export in AOO3.4, and this is a build to build regression since OO 3.3 work fine, mark this bug to 3.4.1 release blocker.
set release blocker flag for 3.4.1
Hi, Can you please attach a sample ODF document, demonstrating the issue? Thanks, Miklos
Created attachment 78432 [details] RTF With User Fields using 3.1 If you open this file with 3.4 then save it all user fields are erased.
Comment on attachment 78432 [details] RTF With User Fields using 3.1 Your welcome
Created attachment 78476 [details] patch to fix the issue in i119803 Seems in cws sw34bf01, the RTF filter is refactored and the export for user field and DB field is missed. This patch add the export for the two field for RTF filter
Created attachment 78498 [details] patch to fix 119803 In cws vmiklos01, the field export for rtf filter and ms word filter is integrated into AttributeOutputBase::TextField() in sw\source\filter\ww8\ww8atr.cxx . However, processing for user field and db field is different for rtf and ms word filter. And in AOO3.4 the processing for the two field is missed. In this patch, the processing for the two field for rtf filter is added to RtfAttributeOutput::WriteExpand() in sw\source\filter\ww8\rtfattributeoutput.cxx
Taking over for patch review
Comment on attachment 78498 [details] patch to fix 119803 patch looks good, applied and tested under Windows. --> I will apply this patch to the source code repository - trunk and branch AOO34
applied patch on trunk, revision 1354421
merged from trunk into branch AOO34, revision 1354426
Verify fixed on Trunk r1355082 and AOO 34 branch 1354891 Close this bug
Thanks to the aoo team for fixing this bug.
set target milestone AOO 3.4.1