GNOME Bugzilla – Bug 512208
QIF Import: New commodities remain if import canceled
Last modified: 2018-06-29 22:00:14 UTC
Please describe the problem: During import, new GnuCash commodities may be created. If the import is canceled, these commodities should be removed, but they aren't. Steps to reproduce: 1. Start GnuCash with the --nofile option. 2. Begin importing a QIF file containing a transaction involving a QIF security (such as the example attached). 3. At the final step of the druid, click Cancel. 4. Open the Security Editor (Tools -> Security Editor) Actual results: There is a commodity listed in the Security Editor. Expected results: There should not be any commodities listed in the Security Editor. Does this happen every time? Yes. Other information:
Created attachment 103773 [details] QIF file demonstrating the bug
This isn't limited to the QIF importer. It happens in all of them. Indeed, in the OFX/HBCI importer new accounts will also be left even if you cancel the import. I just dont see this as a huge bug, honestly.
No, I don't think it's a huge bug either, so I only used a "minor" severity. I guess the OFX/HBCI importer is in worse shape, at least as far as canceling goes. It shouldn't be hard to fix, I think, though I'll have to dip my toe into the C code. (But I'm far more comfortable with C than Scheme anyway.)
Fix committed as r17088. Requesting backport for 2.2.
Applied to branches/2.2 as r17112 for GnuCash 2.2.5. Thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=512208. Please update any external references or bookmarks.