You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/05/28 16:47:07 UTC
[Bug 57967] New: ModifyDocumentSummaryInformation example deletes
custom properties
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
Bug ID: 57967
Summary: ModifyDocumentSummaryInformation example deletes
custom properties
Product: POI
Version: 3.12-FINAL
Hardware: Macintosh
Status: NEW
Severity: regression
Priority: P2
Component: HWPF
Assignee: dev@poi.apache.org
Reporter: stevex-apache@oakburl.net
The ModifyDocumentSummaryInformation example should open the original file,
modify some properties, including custom properties, and then write them back
to the original file.
When I attempt to use it with POI 3.12, any custom properties already in the
.doc file are actually removed, and the custom properties that are added in the
example are not added.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
--- Comment #3 from Steve Tibbett <st...@oakburl.net> ---
Created attachment 32763
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32763&action=edit
Document modified by example code
This is the resulting document. Note the custom property is gone, and the
changes made by the example are not reflected.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
Steve Tibbett <st...@oakburl.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #4 from Steve Tibbett <st...@oakburl.net> ---
I've uploaded two files, the original document I'm starting with (I just
created a new one), and the document after the ModifyDocumentSummaryInformation
was run on it.
File was created with Word for Mac (Preview), Version 15.9.0 (150408), saved as
"Word 97-2004 Document (.doc)".
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
OS| |All
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
I've just tried with a simple test file, and that example, and the example
seems to make the changes I'd expect to it
Are you able to create a very simple test file that shows the problem for us to
try to reproduce it with?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
--- Comment #5 from Michiel <mi...@gmail.com> ---
I also cannot reproduce it. I took the file PropertyTest.doc, added a custom
property and ran ModifyDocumentSummaryInformation on that file. It added the
new custom properties and retained the one I added before execution as well.
I'm using Word for Mac 2011.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
--- Comment #2 from Steve Tibbett <st...@oakburl.net> ---
Created attachment 32762
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32762&action=edit
Original document
This document has one custom property, "TestProperty", whose value is
"TestValue".
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57967] ModifyDocumentSummaryInformation example deletes custom
properties
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57967
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
--- Comment #6 from Dominik Stadler <do...@gmx.at> ---
A few comments indicate that this was not reproducible, therefore I am closing
this WORKSFORME for now. If this is still a problem for you then please reopen
this bug with some more information about how it can be reproduced, ideally a
unit-test that can be added to POI to ensure the bug stays fixed into the
future.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org