Bug 330437 - error during automatic import OFX
Summary: error during automatic import OFX
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.6.4
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 20:44 UTC by smrhppub-site
Modified: 2017-07-01 09:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description smrhppub-site 2014-01-26 20:44:42 UTC
This error occurs when apparently the name of the Windows user has an accent.
http://i.imgur.com/x6xchA2.png

The download file is correctly done yet :
http://i.imgur.com/HVGuykC.png

Reproducible: Always

Steps to Reproduce:
1. Kmymoney install windows in a session whose name has an accent (eg Stéphane) 
2.Set "map to online account" 
3.update the account
Actual Results:  
error during read the ofx file
http://i.imgur.com/x6xchA2.png

Expected Results:  
import the ofx
Comment 1 Cristian Oneț 2014-07-31 12:44:08 UTC
This is probably caused by a invalid path usage. I'll try to fix it although the setup to find this will probably take more than the fix.
Comment 2 Cristian Oneț 2014-10-19 14:19:47 UTC
Git commit f24601327125557a9c5ea455d18842828cdd5c2f by Cristian Oneț.
Committed on 19/10/2014 at 14:16.
Pushed by conet into branch 'master'.

Fix opening OFX files containing non ASCII characters.

Use QFile::encodeName to obtain a filename which can be opened by libOFX.

I haven't been able to test this yet on Windows but I'm sure it will fix
the reported issue.

M  +1    -1    kmymoney/plugins/ofximport/ofximporterplugin.cpp

http://commits.kde.org/kmymoney/f24601327125557a9c5ea455d18842828cdd5c2f
Comment 3 Cristian Oneț 2014-10-19 14:20:20 UTC
Git commit 2d64363d9c8d8ad7496a7e6d0db8a86c5ca1e84e by Cristian Oneț.
Committed on 19/10/2014 at 14:16.
Pushed by conet into branch '4.7'.

Fix opening OFX files containing non ASCII characters.

Use QFile::encodeName to obtain a filename which can be opened by libOFX.

I haven't been able to test this yet on Windows but I'm sure it will fix
the reported issue.
(cherry picked from commit f24601327125557a9c5ea455d18842828cdd5c2f)

M  +1    -1    kmymoney/plugins/ofximport/ofximporterplugin.cpp

http://commits.kde.org/kmymoney/2d64363d9c8d8ad7496a7e6d0db8a86c5ca1e84e