Bug 491963

Summary: LibOFX fails to find opensp.dcl and ofx160.dtd in snap image
Product: [Applications] kmymoney Reporter: dburgess.junk
Component: importerAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: minor CC: sgmoore
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Snap   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dburgess.junk 2024-08-21 02:15:30 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
The snap is reporting missing DTD files.   I performed a manual check and found them in /snap/kmymoney/2//usr/share/libofx7/libofx.   It looks like this problem also occurred for appimages, and was fixed in [Bug ID 416827](https://bugs.kde.org/show_bug.cgi?id=416827).  I'm guessing that the bug fix needs to be extended to include snaps.

STEPS TO REPRODUCE
1. Start the snap and import an OFX file
2. 
3. 

OBSERVED RESULT
LibOFX INFO: libofx_proc_file(): File format not specified, autodetecting...
LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial eXchange (OFX or QFX))
LibOFX INFO: sanitize_proprietary_tags() removed: <INTU.BID>7492</INTU.BID>
LibOFX ERROR: find_dtd():Unable to find the DTD named opensp.dcl
LibOFX ERROR: find_dtd():Unable to find the DTD named ofx160.dtd
LibOFX ERROR: ofx_proc_file(): FATAL: Missing DTD, aborting

EXPECTED RESULT
File is imported without problems

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION