Bug 418069 - Baloo considers .ofx files as having invalid encoding
Summary: Baloo considers .ofx files as having invalid encoding
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-baloo
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Brüns
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-23 03:11 UTC by Thiago Sueto
Modified: 2020-05-04 04:33 UTC (History)
0 users

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 Thiago Sueto 2020-02-23 03:11:02 UTC
SUMMARY
I don't know if this behavior is intended.

Baloo seems to ignore indexing for .ofx, Open Financial Exchange, a file format typically used for accounting.

It shows the following message:
Invalid encoding. Ignoring "/path/to/file.ofx"

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200214
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.5.2-1-default
Comment 1 Stefan Brüns 2020-03-20 18:22:08 UTC
Please provide the output of

$> xdg-mime query filetype /path/to/file.ofx
Comment 2 Bug Janitor Service 2020-04-04 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Thiago Sueto 2020-04-04 10:08:23 UTC
(In reply to Stefan Brüns from comment #1)
> Please provide the output of
> 
> $> xdg-mime query filetype /path/to/file.ofx

Hello, sorry for taking so long.

The output is:
text/plain
Comment 4 Stefan Brüns 2020-04-04 10:25:34 UTC
Unfortunately, ofx is not "Open Financial Exchange, a file format typically used for accounting", but two different formats, one based on SGML (version <= 1.6), the other one XML (Version >= 2).

If it were a XML formatted one, xdg-mime should return application/xml, so it likely is a SGML one.

The SGML one has an ENCODING header, with allowed values UTF8 and USASCII. Baloo uses utf8 for text files, so UTF8 would be ok, and as USASCII is a strict subset of UTF8, it still is ok.

-> your file *does* contain invalid data.
Comment 5 Thiago Sueto 2020-04-04 11:33:52 UTC
That's weird, it works fine with KMyMoney, Skrooge and others.
It seems to be proper SGML and encoding appears as USASCII.
But yeah, it seems to be an issue with how my bank handles those files since after downloading any ofc, ofx and csv file, all of them show text/plain.
Comment 6 Bug Janitor Service 2020-04-19 04:33:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2020-05-04 04:33:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!