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 567174 - Files with NIS stocks fail to open
Files with NIS stocks fail to open
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Engine
2.2.x
Other All
: Normal major
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on:
Blocks: backport
 
 
Reported: 2009-01-09 16:37 UTC by Steve Bamber
Modified: 2018-06-29 22:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example accounts file that displays the problem (3.44 KB, application/octet-stream)
2009-01-09 16:41 UTC, Steve Bamber
Details

Description Steve Bamber 2009-01-09 16:37:33 UTC
The patch introduced in v2.2.8 to correct the coding of the Israeli Shekel (NIS replaced by ILS) is incorrectly applying the re-coding to stocks/shares instead of just the currency commodity.

This makes it impossible to open the accounts file in v2.2.8 - the stock commodity has its abbreviation incorrectly amended to ILS and any prices or accounts that try to use the NIS stock then generate parsing errors.

To reproduce 

- create a new accounts file at 2.2.7 e.g using just the common accounts
- add a new stock/share with an abbreviation of NIS
- add a sample price for the new NIS stock/share
- create an account that uses the new NIS stock/share as its commodity
- save the accounts file
- now try to open the accounts file in 2.2.8 and you'll get a parse error
Comment 1 Steve Bamber 2009-01-09 16:41:39 UTC
Created attachment 126118 [details]
Example accounts file that displays the problem
Comment 2 Andreas Köhler 2009-01-11 11:43:16 UTC
No, the problem is not new, you just did not use one of the other conversion mnemonics.
Targeting for 2.2.9, the fix should be easy.
Comment 3 Christian Stimming 2009-01-13 11:54:36 UTC
Or in other words: Thanks for reporting this problem. Indeed there has been a problem long ago, but fortunately because of your report we have now fixed it (r17805, awaiting back-port). The fix will be in the next version 2.2.9.
Comment 4 Steve Bamber 2009-01-13 15:50:28 UTC
thanks guys - it only became an issue when i upgraded to 2.2.8 (been using gnucash since 1.8.x) so assumed that the problem was new :)

i'll test 2.2.9 as soon as its available
Comment 5 Christian Stimming 2009-01-14 20:14:47 UTC
2.2 branch, r17822. Thanks a lot!
Comment 6 Andreas Köhler 2009-02-14 19:32:42 UTC
Yep, forgot to say Thank You, Steve :-)
Comment 7 John Ralls 2018-06-29 22:15:46 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=567174. Please update any external references or bookmarks.