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 779864 - Wreak havoc by changing account Commodity
Wreak havoc by changing account Commodity
Status: RESOLVED DUPLICATE of bug 603379
Product: GnuCash
Classification: Other
Component: User Interface General
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2017-03-10 15:24 UTC by Chris
Modified: 2018-06-29 23:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris 2017-03-10 15:24:58 UTC
You can wreak havoc by changing an account commodity.

Steps to reproduce:
- Create any accounts of different commodities
  eg Bank1-GBP, Bank2-USD
  or Bank-USD, Stock-MSFT
- Create any transaction between these two accounts
- From any of these accounts, EDIT ACCOUNT > COMMODITY - change Commodity to anything else (eg EUR AAPL etc)

You can create further transactions, amend existing ones. They will use the new commodity, but price table is not updated.

I've also managed to damage its internal logic leading to cases whereby pressing ENTER while editing a transaction does NOT update it. Pressing ENTER does *nothing* - cursor remains as it is. Can't reproduce this one particular behavior.

My suggested fix:
- Disallow changing the account commodity if it contains any splits.
Comment 1 Geert Janssens 2017-03-16 20:34:03 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 603379 ***
Comment 2 John Ralls 2018-06-29 23:55:14 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=779864. Please update any external references or bookmarks.