[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    KMimeType::findByUrl() misdetection for "Core"
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-07-05 21:03:39
Message-ID: 20090705210339.GA5438 () trinity ! apaku ! dnsalias ! org
[Download RAW message or body]

Hi,

for the details please have a look at:
https://bugs.kde.org/show_bug.cgi?id=198477

What I'd like to know is wether an application should/can rely on
findByUrl() doing as much as it can to properly detect the right
mimetype. As far as I understood the API docs, this is the "catch all"
method that one should use if there's a url. From my understanding I
shouldn't need to care myself wether the url is local or remote and then
also do a KMimeType::findByContent(), is that right?

In particular the current documentation doesn't say anything about
the behaviour when a file has no extension, only the bugreport shows
that in that case there are some mimetypes which are matched based on
filename and that precedes over a content check - even for local files.

Andreas

-- 
Don't Worry, Be Happy.
		-- Meher Baba
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic