Registered Member
|
i have konqueror 4.10.5 on mageia3 64bit
i'm having issues with torrents i try to download from my humblebundle.com account, i think it is a problem with konqueror. my file associations have application/x-bitorrent set to to pattern *.torrent and application deluge, yet every time i click on a link i get the 'open with' dialogue, if i go to the file associations settings and select 'ask to save as...' i get the saveas/open with/ dialogue and the option to remember the choice, but if i tick the 'remember this' option and select deluge the next time i click the same or other link i get the 'open with' dialogue, if i reset the 'save as' setting the dialogue for saveas/openwith says the filetype is 'unknown', the links are of the form: https://hb1.ssl.hwcdn.net/torrents/torr ... 3456789012 (link altered for privacy) and the filetype returned by the web server is octet-stream, is this a problem? i understood that the whole point of the file associations was to allow konqueror to know what to do with a file if it had no mimetype from the server? i have tried adding the pattern *.torrent* to the file association but that made no difference bascule |
Administrator
|
I believe web browsers primarily rely on the correct mimetype being transmitted - when you try to save the file, what name does Konqueror offer to save it as?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
if i choose save link as i get the following:
bascule |
Administrator
|
Okay, that looks to be correct. If you save the file to your system, then try to open it - is the correct behaviour observed?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
yes, if i save the file then it opens in deluge as expected, i'm including a screenshot of what the dialogue looks like when i edit the file associations to reset octet-stream back to 'ask for save as' - i had expected that selecting 'remember this selection' would result in the file association for torrents being affected by this, but experimenting with editing the file associaiton for x-bittorrent show no effect on the behaviour when clicking on these links, it seems that konqueror is completely unaware that that the link is anything to do with torrents when a left click is used, although as mentioned when right clicking to save the file i get the expected behaviour, which is that the link is interpreted to be the actual torrent file rather than with all that extra stuff in the url (which i've blanked out since i believe it is specific to my humble bundle account!) by the way, thankyou for spending the time on this problem and my other (maybe related?) issue bascule |
Administrator
|
Your analysis appears to be correct - Konqueror is failing to correctly determine the type of file based on extension when downloading from an internet site, when the server is not sending the correct mimetype. I'm not sure if this is a bug though, as the hosting server ideally should be sending correct mimetype headers (or none at all).
Are you able to check with them to see if they are sending any mimetype headers? (Alternatively, you could also try using the web inspector in other browsers to see what HTTP headers are being sent when you try to download the torrent files).
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
here is a screenshot from using firefox web console,
seems the mimetype is simple octet-stream bascule |
Administrator
|
Okay, this means Konqueror will assume that to be correct - and apply the preferences for that file mimetype, rather than relying on the extension of the file - which is what probably would have happened had nothing been sent. I would suggest contacting the Humble Bundle folks concerning the incorrect mimetype.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
ok, i shall also think about a feature request for kde to be able to have unknown filetypes use registered extensions if they exist, thank you for your time :) bascule |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]