Apache OpenOffice (AOO) Bugzilla – Issue 62823
Reopening a sxw-file with OO 1.1.4 after saving with OO 2.0.1 gives wrong variable contents
Last modified: 2017-05-20 11:19:32 UTC
I have set some variables for name, address etc. which are referenced later in my document. After saving with OO 2.0.1 for Windows and reopening with OO 1.1.4 for Linux the variables show "0". See my Test.sxw.
Created attachment 34609 [details] Example file
Reassigned to ES.
Please attach the original .odt document.
@markamm: And - please - give us some exact hints what variables we are talking about: "Bauherr/Betreiber" or Address field before "Antrag auf wasserrechtliche Erlaubnis für die Grundwasserbenutzung ..." or ?
Hm, I believe I see (pls excuse my ignorance): After text "Sehr geehrte/r Herr/Frau" I see a variable "Name", and in "content.xml" I see <text:variable-get text:name="Name" office:value-type="float" style:data-style-name="N0">0</text:variable-get> 'office:value-type="float"' seems to be nonsense, should be 'office:value-type="string"' No Idea how to reproduce that in the document, all further variables I inserted always were shown correctly. @markamm: Your 'Test.sxw' as been opened _and_saved_ with OOo 1.1.4? Original .odt document still is required. Can you also reproduce that problem in documents where string variables input is outside the Header of the document?
I have created a small demo document with two variables with OO 2.0.1 (Windows) and saved it as odt and sxw. Open the sxw version with OO 1.1.4 (I have on Linux, don't know whether it is os dependent) and after an update operation (F9) the variable references become "0". You are right: Adding _new_ references work as they should. But this is obviously not what variables are ment to be... I kept my 1.1.4 version (on Linux) because the 2.0 (Windows) version messed up all relative links in html-documents. I'm not quite sure 2.0.1 has fixed that.
Created attachment 34626 [details] Demo document as odt
Created attachment 34627 [details] Demo document as sxw
ES->OS: as rainerbielefeld noticed, OOo 1.1.x interpretes the "string" as "float" when updating. OOo 1.1.x or 2.0 bug?
It is a 2.0 bug: correct 'value-type="string" from .odt' > Referenzen: Name = > <text:variable-get text:name="Name" > office:value-type="string">VarName</text:variable-get> mutates to 'type="float"' > Referenzen: Name = > <text:variable-get text:name="Name" text:value-type="float" > style:data-style-name="N0">VarName</text:variable-get> after saving by 2.0.1 as .sxw So I change subcomponent to "Save-Export"
MRU->rainerbielefeld: you might be right, that this is a 20 bug. But please do not reassign the issue back from DEV to QA.... Re-reassigned to OS.
Reset assigne to the default "issues@openoffice.apache.org".