[kmymoney] [Bug 434605] crash when importing csv with missing category

Jack bugzilla_noreply at kde.org
Fri Mar 19 17:10:06 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=434605

Jack <ostroffjh at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|crash when trying to import |crash when importing csv
                   |csv file (kmymoney kf5)     |with missing category
            Version|unspecified                 |5.1.1
     Ever confirmed|0                           |1
           Platform|Other                       |Compiled Sources
             Status|REPORTED                    |CONFIRMED

--- Comment #2 from Jack <ostroffjh at users.sourceforge.net> ---
When importing a csv file, if a column is mapped to Category, and that column
has a value of "::" in any row, an exception is thrown in
kmymoney/mymoney/mymoneyfile.cpp (MyMoneyFile::addAccount line 938 in 5.1 git
head, possibly different line in other branches).  I assume this is trying to
create an account for the category, since one doesn't already exist.  While the
exception is correct, I see two problems here.  First, the exception should be
caught, otherwise you get a crash.  Second, a more helpful error message would
indicate that the account in question is a Category, and not a regular Account,
to give the user a better chance of finding and fixing the error in the input
csv file.  (Separate questions - should it be allowed to import a transaction
without a category?)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list