After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318254 - summary items are lost when saving to gnumeric xml format
summary items are lost when saving to gnumeric xml format
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-10-07 20:58 UTC by Henry Proudhon
Modified: 2005-10-08 00:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Henry Proudhon 2005-10-07 20:58:59 UTC
Please describe the problem:
starting from an xml file with for instance:

...
 <gnm:Summary>
   <gnm:Item>
     <gnm:name>keywords</gnm:name>
     <gnm:val-string>xml, test, export from java</gnm:val-string>
   </gnm:Item>
   <gnm:Item>
     <gnm:name>application</gnm:name>
     <gnm:val-string>gnumeric</gnm:val-string>
   </gnm:Item>
   <gnm:Item>
     <gnm:name>author</gnm:name>
     <gnm:val-string>Neryo</gnm:val-string>
   </gnm:Item>
 </gnm:Summary>
...

All fields are imported correctly. But when re-saving the file, these are
replaced by 3 times
   <gnm:Item>
     <gnm:name>keywords</gnm:name>
     <gnm:val-string>xml, test, export from java</gnm:val-string>
   </gnm:Item>
Actually we get as many copies of one item (not always the same depending on
which item are not null) as the initial number of items in the summary.

As a result, the fields are lost if I close and open the file again.

I've tested with 1.4.2 as well and I got the same behavior.


Steps to reproduce:
1. take a gnumeric file in uncompressed xml format
2. edit this file to change the summary items
3. open the file with gnumeric, go to file properties and see the items are
correctly shown
4. save the file
5. open it again with the editor (or gnumeric and do File->Properties) and see
that the items have all the same value!


Actual results:
during the save operation, the good number of items is created but they all have
the same value.

Expected results:
the items should not be modified during the save operation

Does this happen every time?
yes

Other information:
Comment 1 Morten Welinder 2005-10-08 00:07:30 UTC
Confirmed.
Comment 2 Morten Welinder 2005-10-08 00:32:41 UTC
Fixed.