Bug 390627

Summary: QIF Import filter fails
Product: [Applications] kmymoney Reporter: Georg Pichler <georg.pichler>
Component: importerAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: georg.pichler
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.1
Sentry Crash Report:

Description Georg Pichler 2018-02-17 19:43:22 UTC
OS: Arch Linux
Version: 5.0.0 (provided by Arch package)

When defining a QIF import filter and starting an import using the profile, where the filter was defined, I get the error

"Error while running the filter ''."

(note that the actual filter program string is empty) and the error message reads

"No program defined."

Expected behavior:
Successful import using the defined filter program.
Actual behavior:
Import fails with the given error message.
Comment 1 Georg Pichler 2018-02-17 19:49:56 UTC
After some digging, I believe the bug was introduced in commit 9db968bfd:
At line 475 in kmymoney/plugins/qif/import/mymoneyqifreader.cpp the QStringList arguments is set to the program name, including the arguments:

      arguments << m_qifProfile.filterScriptImport().split(' ', QString::KeepEmptyParts);

However, the actual QString program is never set. Could that be the reason?