Bug 491963 - LibOFX fails to find opensp.dcl and ofx160.dtd in snap image
Summary: LibOFX fails to find opensp.dcl and ofx160.dtd in snap image
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: importer (show other bugs)
Version: 5.1.3
Platform: Snap Linux
: NOR minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-21 02:15 UTC by dburgess.junk
Modified: 2024-08-24 06:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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