Summary: | file type not correctly recognized when using smb | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Martin Koller <kollix> |
Component: | smb | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | faure, finex, peter.penz19 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Martin Koller
2009-08-17 10:26:58 UTC
Konqueror uses dolphin for file management. Moved to "dolphin" product... @Peter: is this a dolphin or a KIO issue? @FiNeX: it is not Dolphin specific, but I'm not sure whether it is a kio-issue or a general kdelibs issue. Where I'm sure is that David Faure is able to fix this kind of issue :-) Ok, thanks Peter. I've addedd David on CC :-) This means kio_smb isn't doing correct mimetype determination; it should read the beginning of the file and pass it to KMimeType::findByNameAndContent, like other ioslaves do. SVN commit 1028147 by dfaure: Sort list of mimetypes before randomly picking one (when we don't have the file content to find out more). This way, we get a deterministic result rather than depending on qHash(QString), and as a nice side effect, *.doc defaults to application/msword rather than text/plain, which restores the kde3 and shared-mime-info behavior (despite our addition of "*.doc can be text/plain for local files", compared to shared-mime-info). BUG: 204139 M +7 -0 services/kmimetype.cpp M +1 -3 tests/kmimetypetest.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1028147 |