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 412673 - invisible accounts are being added on save
invisible accounts are being added on save
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Engine
git-master
Other All
: Normal minor
: ---
Assigned To: David Hampton
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2007-02-27 15:57 UTC by Chris Leach
Modified: 2018-06-29 21:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Leach 2007-02-27 15:57:10 UTC
Please describe the problem:
After a save new accounts are appearing the the save XML file

Steps to reproduce:
1. Start gnucash
2. select save
3. compare XML file


Actual results:
New acconts of form
<gnc:account version="2.0.0">
  <act:name>abb81bfd740a28b739dd18e8787140bf</act:name>
  <act:id type="guid">655386190b0f7fe80c9e834446c57340</act:id>
  <act:type>BANK</act:type>
  <act:commodity>
    <cmdty:space>template</cmdty:space>
    <cmdty:id>template</cmdty:id>
  </act:commodity>
  <act:commodity-scu>1</act:commodity-scu>
  <act:parent type="guid">add037be17b625c09c60ba4d20b7a7a8</act:parent>
</gnc:account>

are appearing in the file.
These accounts are not visible in the account tree.

Expected results:
The previous and current XML files should equivalent.

Does this happen every time?
yes

Other information:
SVN version 15671
Comment 1 David Hampton 2007-02-28 04:43:20 UTC
Thanks for the bug report.  This is fixed in r15674.
Comment 2 Chris Leach 2007-03-01 08:01:58 UTC
(In reply to comment #1)
> Thanks for the bug report.  This is fixed in r15674.
> 

I've updated to r15675 and I am still seeing an new invisibale ROOT account being added. e.g.
 <gnc:account version="2.0.0">
   <act:name/>
-  <act:id type="guid">b9bb11f97958d059d38674cfb0d45b85</act:id>
-  <act:type>ROOT</act:type>
-  <act:commodity-scu>0</act:commodity-scu>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name/>
   <act:id type="guid">adffe7dff06118adcc863745806187e5</act:id>
   <act:type>ROOT</act:type>
-  <act:commodity>
-    <cmdty:space>template</cmdty:space>
-    <cmdty:id>template</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>1</act:commodity-scu>
-  <act:parent type="guid">b9bb11f97958d059d38674cfb0d45b85</act:parent>
+  <act:commodity-scu>0</act:commodity-scu>
 </gnc:account>

and the save before that
 <gnc:account version="2.0.0">
   <act:name/>
-  <act:id type="guid">adffe7dff06118adcc863745806187e5</act:id>
-  <act:type>ROOT</act:type>
-  <act:commodity-scu>0</act:commodity-scu>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name/>
   <act:id type="guid">9c3ed1ca6f14ab34a200d35a8011b3b1</act:id>
   <act:type>ROOT</act:type>
-  <act:commodity>
-    <cmdty:space>template</cmdty:space>
-    <cmdty:id>template</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>1</act:commodity-scu>
-  <act:parent type="guid">adffe7dff06118adcc863745806187e5</act:parent>
+  <act:commodity-scu>0</act:commodity-scu>
 </gnc:account>

Comment 3 David Hampton 2007-03-01 15:19:43 UTC
The root accounts are an intentional addition to the data file.  These are the accounts that hold all the "top level" accounts like Assets, Liabilities, etc.  They shoudn't be written out, however, unless you've set a specific key in gconf (/apps/gnucash/dev/allow_file_incompatibility) to allow differences between the 2.0 data file and the 2.2 data file.  I just tested gnucash, and it correctly honors the existence and value of this key.
Comment 4 John Ralls 2018-06-29 21:28:09 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=412673. Please update any external references or bookmarks.