Bug 75243

Summary: FILESAVE: Empty custom properties are lost while saving in .doc format
Product: LibreOffice Reporter: Tarun Kumar <tarun.k.kumar>
Component: filters and storageAssignee: Tarun Kumar <tarun.k.kumar>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: gautier.sophie, mst.fdo
Version: 4.2.0.4 releaseKeywords: patch
Hardware: Other   
OS: All   
Whiteboard: target:4.3.0 target:4.2.3
i915 platform: i915 features:
Attachments: proposed patch. bSkipEmpty is set to false in header file

Description Tarun Kumar 2014-02-20 05:38:17 UTC
Created attachment 94406 [details] [review]
proposed patch. bSkipEmpty is set to false in header file

Problem Description

In some scenarios, empty properties are created in the writer file(in .doc format), which are later populated automatically through some tool (example work flow scenarios). Writer removes empty custom property while saving the document in .doc format

Steps to reproduce:
1. Open Writer and use a document .doc
2. Add it a custom property. Donot enter any value for the property
3. Save it and close Writer
4. Open again Writer and use same document reciently saved.
5. Custom property is lost.

Current behavior:

Expected behavior:
Writer should retain empty custom property also while saving the file in .doc format

Note: Attached patch is tested on LO 4.2 source code; tested and working fine
Comment 1 sophie 2014-02-20 15:27:16 UTC
I set it to new, but for me properties are lost when I close the property dialog if they are empty, even before saving and reopening the document.
Set as new, add keyword patch - Sophie
Comment 2 Commit Notification 2014-03-10 10:23:46 UTC
Tarun Kumar committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=3ba58a22bdd51cd4221547e0a0e95b6d2b987358

fdo#75243: MSO export: save custom properties with empty value



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2014-03-10 10:25:08 UTC
Tarun Kumar committed a patch related to this issue.
It has been pushed to "libreoffice-4-2":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=c3813789af24ae53153e0014ce5e4fff880197a2&h=libreoffice-4-2

fdo#75243: MSO export: save custom properties with empty value


It will be available in LibreOffice 4.2.3.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 4 Michael Stahl 2014-03-10 10:25:50 UTC
fixed, thanks for the patch

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.