Steps to Reproduce: 1 - create a new visio file 2 - modify its title with an application using poi like "WriteTitle.java" (poi example) 3 - open the document with visio and save it (don't modify the title). Actual Results: the document title is gone. Expected Results: the title should be the same title modified by step one. I am using visio 2002 sp-2 - 10.0.6865 poi-3.0.1-FINAL description: I modify visio document properties through poi( title,author, custom properties...), everything looks fine. If I modify the same document via visio application or via windows, the document entries are inverted VisioInformation(1st) et VisioDocument(2nd) then every properties are lost (title...) and sometimes the document becomes unreadable. I check an original visio document with PoiBrowser, VisioInformation shoulb be before VisioDocument but if a document is modified via my application(poi) VisioDocument is before VisioInformation. I also tried with the example code "WriteTitle.java", it is the same result.
Created attachment 21033 [details] PoiBowser view of the Document entries of an original visio and a corrupted one
Created attachment 21034 [details] Original document. properties modified if this file is saved via visio application, every properties disapeared
The order of entries in the property set doesn't matter. Properties are identified by name. The so-called "corrupted" file looks not quite, but rather good. At least the title is there. Anyway, if something is wrong with the properties after Vision wrote them, that looked like a bug in Visio, not in HPSF.
First of all, thank you for checking my bug. I agree with you visio application is not bug free. Anyway, the problem happens only when a visio file is modified by HPSF. The only difference noticed between a "no-problem" file and "problem" file is the order of the document entries. If you open and save the file in attachment with visio application, the title will disappear. Is there anyway to force the order of "VisioInformation" and "VisioDocument" document entries. Thank you note : I wrote "corrupted" because I don't find any other that really fit the nature of the document. (In reply to comment #0) > Steps to Reproduce: > 1 - create a new visio file > 2 - modify its title with an application using poi like "WriteTitle.java" (poi > example) > 3 - open the document with visio and save it (don't modify the title). > Actual Results: > the document title is gone. > Expected Results: > the title should be the same title modified by step one. > I am using visio 2002 sp-2 - 10.0.6865 > poi-3.0.1-FINAL > description: > I modify visio document properties through poi( title,author, custom > properties...), everything looks fine. > If I modify the same document via visio application or via windows, the document > entries are inverted VisioInformation(1st) et VisioDocument(2nd) then every > properties are lost (title...) and sometimes the document becomes unreadable. > I check an original visio document with PoiBrowser, VisioInformation shoulb be > before VisioDocument but if a document is modified via my application(poi) > VisioDocument is before VisioInformation. > I also tried with the example code "WriteTitle.java", it is the same result. (In reply to comment #3) > The order of entries in the property set doesn't matter. Properties are > identified by name. The so-called "corrupted" file looks not quite, but rather > good. At least the title is there. > Anyway, if something is wrong with the properties after Vision wrote them, that > looked like a bug in Visio, not in HPSF. (In reply to comment #3) > The order of entries in the property set doesn't matter. Properties are > identified by name. The so-called "corrupted" file looks not quite, but rather > good. At least the title is there. > Anyway, if something is wrong with the properties after Vision wrote them, that > looked like a bug in Visio, not in HPSF.
Created attachment 21065 [details] open and saved document This is the same document.It was only opened and saved with. Every properties are gone.You can compare with the original document in attachment.
Comment on attachment 21034 [details] Original document. properties modified the properties were modified using hpsf
In order to make this issue researchable you should submit the following: * the original file as created by Vision, * the file as modified by HPSF, * a JUnit test case exhibiting the faulty behaviour.
Created attachment 21086 [details] the original file as created by Visio
Created attachment 21087 [details] the file as modified by HPSF I modified the title and some customProperties by HPSF
Created attachment 21088 [details] the HPSF modifed file edited and saved by Visio the properties and the title are unavailable.
Created attachment 21089 [details] JUnit test case exhibiting the faulty behaviour I used your example code source to modify the title and custom properties of a document
You can find in attachment: - The original vsd file "document.vsd" (id = 21086). - The same document modified with HPSF (id = 21087).The title was modified and some custom properties.When you open this everything seems fine. - The document edited and saved with visio(id = 21088).The title and custom properties are lost. - The JUnit class (id = 21089)I used to modify the original document.It includes a poi example method.
Thanks for the info you provided! Now if I only could find some time to have a look at them...