Bug 404191 - Ark can't open kra zip files
Summary: Ark can't open kra zip files
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-11 05:25 UTC by mappu04
Modified: 2019-06-08 04:33 UTC (History)
3 users (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 mappu04 2019-02-11 05:25:04 UTC
SUMMARY
Ark can't open files created by KDE Krita (*.kra format - renamed *.zip)

STEPS TO REPRODUCE
1. Create a file in Krita, save as native *.kra format
2. Try to open with Ark

OBSERVED RESULT
""Loading the archive /home/mappu04/test.kra failed with the following error:
No suitable plugin found. Ark does not seem to support this file type.""

EXPECTED RESULT
Ark should have shown the files inside the .kra archive.
Same result as `bsdtar fl test.kra`: Krita zip files contain

mimetype
maindoc.xml
documentinfo.xml
preview.png
test/layers/layer1
test/layers/layer1.defaultpixel
test/layers/layer1.icc
etc etc etc...

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Buster (testing)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 18.08.3
Qt Version: 5.11.3

ADDITIONAL INFORMATION
I have all default plugins enabled.
Clearly libarchive is able to list the files inside this *.kra archive as evidenced by the bsdtar command output.
I disabled the Info-Zip plugin inside Ark, and left the Libarchive plugin enabled, but still got this error message in Ark.

Renaming the file to foo.kra.zip actually didn't help neither, so this isn't just a file extension issue...
Comment 1 Viorel-Cătălin Răpițeanu 2019-02-12 14:42:35 UTC
Considering the fact that unzip can unpack these files, I kinda agree. Ark should be capable of doing this as well.
Comment 2 Elvis Angelaccio 2019-02-16 13:32:31 UTC
Are Krita files really just renamed zip archives? If yes, then the krita mimetype in shared-mime-info should have the following like (which will make it compatible with ark):

    <sub-class-of type="application/zip"/>

Moving to krita for now. I can fix it in shared-mime-info if the Krita developers can answer my question above.
Comment 3 Halla Rempt 2019-02-16 14:35:45 UTC
Yes, it's a zip file, just like openraster and opendocument files. 

However, if I rename a .kra file to .zip, akr can open it just fine. 

Note that in the current master branch of Krita, there's an option to enable zip64 support; ark won't be able to open that because it depends on karchive, which doesn't support that.
Comment 4 Halla Rempt 2019-05-09 13:02:37 UTC
In any case, that change in shared-mime-info should be done. We don't have a product for that, do we?
Comment 5 Bug Janitor Service 2019-05-24 04:33:08 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 6 Bug Janitor Service 2019-06-08 04:33:09 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!