This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KMyMoney import fails

Tags: None
(comma "," separated)
JantarMantar
Registered Member
Posts
36
Karma
0

KMyMoney import fails

Mon Jun 13, 2016 1:56 am
When I tried importing my kmm file into Skrooge (2.4) it churns for a while then it stops, but the file remains empty. When running from command-line shows these messages:

Code: Select all
##WARNING: SKGServices::stringToInt(8.04831E+11) failed
##WARNING: SKGServices::stringToInt(7.0457E+11) failed
.
.
.
(100's of similar messages)
##WARNING: INSERT INTO suboperation ('t_comment','d_date','rd_operation_id','f_value','r_category_id') VALUES ('Online Bill Payment Debit on 4/20ECU Billing Services,XXXXXXXX,XX
Ref# 000000000','2015-04-20','22582','-160.39','347')
##         returns :unrecognized token: "'Online Bill Payment Debit on 4/20ECU Billing Services,XXXXXXXX,XX
Ref# 000000000" Unable to execute statement
##WARNING: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification


JantarMantar, proud to be a member of KDE forums since 2008-Dec.
User avatar
smankowski
Moderator
Posts
1047
Karma
7
OS

Re: KMyMoney import fails

Thu Jun 16, 2016 8:44 pm
Hi,

I think this error is due to a comment having more than one line.
A possible workaround is to change the comment of the transaction having the comment "Online Bill Payment Debit on 4/20ECU Billing Services".

In parallel, I will try to find a fix for Skrooge.


Skrooge, a personal finances manager powered by KDE
Image - PayPal
JantarMantar
Registered Member
Posts
36
Karma
0

Re: KMyMoney import fails

Thu Jun 16, 2016 9:42 pm
Thank you. Please explore the possibility of using prepared statements. Skrooge may be vulnerable to SQL injection attacks.


JantarMantar, proud to be a member of KDE forums since 2008-Dec.
User avatar
smankowski
Moderator
Posts
1047
Karma
7
OS

Re: KMyMoney import fails

Fri Jun 17, 2016 3:27 pm
Hi,

SQL Ingection is taken into account by adding quotes when needed.
But, the multi lines is not taken into account, causing failure.

That's why I will fix Skrooge.


Skrooge, a personal finances manager powered by KDE
Image - PayPal


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]