Bug 176935 - Incorrect handling of file types in remote file systems
Summary: Incorrect handling of file types in remote file systems
Status: CONFIRMED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: FISH (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: Jörg Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 23:56 UTC by Dotan Cohen
Modified: 2018-08-24 21:29 UTC (History)
2 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 Dotan Cohen 2008-12-04 23:56:58 UTC
Version:            (using KDE 4.1.3)
Installed from:    Ubuntu Packages

Dolpin correctly opens files with their associated applications in local file systems, however, not while browsing remote file systems with the fish protocol. For instance, local .doc files open in Open Office, while remote .doc files are loaded into Kate as binary files.
Comment 1 David Faure 2009-02-19 19:36:34 UTC
Then kio_fish is not reporting the right mimetype...
Comment 2 Oriol Mirosa 2012-06-15 02:17:06 UTC
I'm not sure if, after all this time, the problem is the same, but at least now the issue is definitely not just for the fish protocol. Both in Dolphin and Konqueror the mimetype of all files is properly recognized when they are local. But all remote files (and I have tried with more than one remote host) are not.

A bug reported to ownCloud (http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-668) claims that the problem is an extra ';' (semicolon) that is appended to the mimetype by the 'file' command when used to identify the mimetype. The solution suggested there is simply to make ownCloud remove the semicolon. When I do that, then Dolphin and Konqueror are able to correctly identify the mimetype of all files and everything is fine. But, of course, this only helps when I am accessing my ownCloud files through ownCloud's webdav, and all the other files I access in the server continue to have their mimetypes unrecognized.

Does KDE not use the 'file' command for local files but it does for remote ones? Or does it find a way to fix the issue for local files but not for remote ones? I really don't know enough about programming to be able to diagnose this properly and know where to report a separate bug, but I find this behavior extremely annoying so any guidance on how to move on to try to get this fixed would be much appreciated.