Bug 311214 - clicking on an opendocument file opens it as zip-file
Summary: clicking on an opendocument file opens it as zip-file
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.9.4
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: regression, reproducible
: 311196 311221 311478 312182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-05 16:53 UTC by m.wege
Modified: 2017-06-07 21:07 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.wege 2012-12-05 16:53:42 UTC
Since upgrading from KDE 4.93 to 4.94 yesterday opendocument files are not opened in Libreoffice any more, but treated as zip-files (which they also are) which means the files contained in the .odt are shown. Libreoffice is set as priority one in file association settings of KDE (both general and embedded). It also shows up first when doing right-click and selecting "open-with".

Reproducible: Always
Comment 1 Frank Reininghaus 2012-12-05 17:23:23 UTC
Thanks for the bug report. I cannot test it at the moment, but it looks like it might have been caused by the fix for bug 188989: https://git.reviewboard.kde.org/r/101455/
Comment 2 Frank Reininghaus 2012-12-05 19:36:22 UTC
Confirmed (if "Open archives as folder" is enabled). It's indeed caused by the fix for bug 188989 - reverting that commit from kdelibs makes it work correctly again.

Raising severity. It would even qualify as a release blocker IMHO, but unfortunately, the release has happened already.
Comment 3 Frank Reininghaus 2012-12-05 19:36:54 UTC
*** Bug 311221 has been marked as a duplicate of this bug. ***
Comment 4 Jekyll Wu 2012-12-05 19:59:42 UTC
*** Bug 311196 has been marked as a duplicate of this bug. ***
Comment 5 David Faure 2012-12-05 21:51:40 UTC
Git commit 73283f1332e90fbb6fe0caa39a038cb16b83a54c by David Faure.
Committed on 05/12/2012 at 22:42.
Pushed by dfaure into branch 'KDE/4.9'.

Revert "Also check parent mimetypes in protocolForArchiveMimetype()."

This reverts commit 4f296cfbced2c4ad54beec8f500ed2d3fc04ee05.
It breaks opening odt and other zip-based files in external apps.
That's what I get for delegating the testing :-)

M  +1    -18   kio/kio/kprotocolmanager.cpp

http://commits.kde.org/kdelibs/73283f1332e90fbb6fe0caa39a038cb16b83a54c
Comment 6 dE 2012-12-07 15:55:50 UTC
This'll be in kde 4.9.5?

Any workaround for the mean time?
Comment 7 Frank Reininghaus 2012-12-07 16:00:00 UTC
(In reply to comment #6)
> This'll be in kde 4.9.5?

Yes. Maybe I'll send a message to the packagers later today or tomorrow about this issue (and 2 other regressions: bug 311246, bug 311206), so they can decide if they think it's worth the effort to provide updated 4.9.4 packages.

> Any workaround for the mean time?

Disable "Open archives as folder" in the settings.
Comment 8 David Faure 2012-12-08 08:23:33 UTC
I already emailed the packagers last Wednesday with the patch :)
So this might be in 4.9.4 -- or not, I didn't get any answer.
Comment 9 Pascal d'Hermilly 2012-12-10 09:01:01 UTC
The patch is already shipped in Kubuntu (my own setup) and OpenSuse (according to Jos Poortvliet).
Comment 10 Jekyll Wu 2012-12-10 19:12:45 UTC
*** Bug 311478 has been marked as a duplicate of this bug. ***
Comment 11 Pascal d'Hermilly 2012-12-16 18:06:25 UTC
This happens in KDE 4.10 Beta 2. (4.9.90). Has it been fixed in the coming 4.10?
Comment 12 Jekyll Wu 2012-12-16 18:40:04 UTC
(In reply to comment #11)
> This happens in KDE 4.10 Beta 2. (4.9.90). Has it been fixed in the coming
> 4.10?

Yes.
Comment 13 Jekyll Wu 2012-12-25 11:27:44 UTC
*** Bug 312182 has been marked as a duplicate of this bug. ***
Comment 14 Pascal d'Hermilly 2013-02-14 09:30:44 UTC
This is a problem is still seen in Gwenview 4.10.0.
The browse part lists .ods / odt / docx files etc as folders.
Comment 15 dE 2013-02-16 06:10:07 UTC
Also k3b project saves open as zip archives.
Comment 16 Frederik Schwarzer 2016-05-25 23:47:31 UTC
I am just seeing this in KF 5.22.
In Dolphin, .ods files open like archives instead of being opened in LibreOffice.
Comment 17 Frederik Schwarzer 2017-05-29 12:37:11 UTC
Since I am still seeing this a year later (now in KF 5.28.0), I am going to reopen the report hoping for someone to be able to either confirm or deny the existence of this behaviour. :)

The problem I am seeing is as described by the reporter. The work-around with disabling "Open archives as folder" in Dolphin settings also still works.
Comment 18 Christoph Feck 2017-06-07 11:01:30 UTC
Frederik, do you have Krusader installed? What you are seeing might be bug 371765.
Comment 19 Frederik Schwarzer 2017-06-07 21:07:20 UTC
Thanks Christoph for pointing me to that.
Uninstalling Krusader made the problem go away. :)