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 505386 - Gnucash looses transactions if the file contains special characters
Gnucash looses transactions if the file contains special characters
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Import - OFX
2.2.x
Other All
: Normal critical
: ---
Assigned To: Benoit Grégoire
Benoit Grégoire
: 516898 (view as bug list)
Depends on:
Blocks: backport
 
 
Reported: 2007-12-24 09:21 UTC by Stephane Carrez
Modified: 2018-06-29 21:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
OFX file to import that shows the issue (1.92 KB, text/plain)
2007-12-24 09:22 UTC, Stephane Carrez
Details

Description Stephane Carrez 2007-12-24 09:21:33 UTC
Please describe the problem:
See http://lists.gnucash.org/pipermail/gnucash-user/2007-December/022903.html

After importing an OFX file that contains some special characters
(Latin 1), the transactions are read correctly but when you save and then
reload the gnucash file, many transactions are lost.

This is due to a special character in the gnucash XML file.  The character
is not escaped and the XMl reader fails.

This bug may be related to the OFX import or the XML writer.


Steps to reproduce:
1. Import the OFX file attached to this bug (euro)
2. After import, you'll see 5 transactions (final balance -1800 euro)
3. Save the gnucash file
4. Exit and restart gnucash
5. Open the saved gnucash file.  There is no transactions.



Actual results:
All 5 transactions are lost.

Expected results:
We do not loose any transaction.

Does this happen every time?
yes

Other information:
Comment 1 Stephane Carrez 2007-12-24 09:22:34 UTC
Created attachment 101536 [details]
OFX file to import that shows the issue
Comment 2 Andreas Köhler 2007-12-28 14:47:56 UTC
Thanks a lot for the report!

r16755 should fix this by stripping off non-utf8 characters from ofx check and reference number strings.
Awaiting backport to branches/2.2.
Comment 3 Andreas Köhler 2008-01-05 01:04:38 UTC
branches/2.2 @ r16794 for GnuCash 2.2.3.
Comment 4 Andreas Köhler 2008-02-19 23:18:45 UTC
*** Bug 516898 has been marked as a duplicate of this bug. ***
Comment 5 John Ralls 2018-06-29 21:57:18 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=505386. Please update any external references or bookmarks.