Bug 126078 - Does not use correct file name with Content-Disposition headers.
Summary: Does not use correct file name with Content-Disposition headers.
Status: RESOLVED DUPLICATE of bug 122372
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: 0.8.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-22 18:01 UTC by Matt Sicker
Modified: 2008-05-11 08:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Sicker 2006-04-22 18:01:12 UTC
Version:           0.8.5 (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
OS:                Linux

When a downloaded file is attached via a method such as sending the HTTP headers "Content-Disposition: (attached|inline);filename=foo.torrent;other-information" as specified in RFC 2183, it saves the file as the URL's name instead of the filename from the headers.  A common usage of this method is on torrent sites that send torrents as attachments via some download.php?id=12345 method.  My guess is that it allows for customised torrent files using a user-specific announce URL (typically to keep track of a user's up:down ratio).  It also allows for obfuscation of the URL to prevent direct linking to a specific mirror so that the best mirror is chosen for everyone who visits that page.
Comment 1 Niels 2006-04-22 19:30:31 UTC
Probably a duplicate of #122372.
Comment 2 Mário Srgio Fujikawa Ferreira 2006-05-06 17:51:26 UTC
Actually, #122372 is a duplicate of this bug report.

I can reproduce this problem under FreeBSD 6.1 with KDE 3.5.2 and kget 0.8.5. Everything built directly from FreeBSD ports.
Comment 3 Urs Wolfer 2006-05-07 00:02:21 UTC

*** This bug has been marked as a duplicate of 122372 ***
Comment 4 Darin McBride 2008-02-08 21:08:03 UTC
This is not a dupe of 122372.  I can reproduce by giving kget the URL directly, e.g., if I drag and drop the URL from 122372 into my kget window, it wants to save to a directory (not index.html).  (Using 0.8.5 with KDE 3.5.8 - clicking on the URL in konqueror works fine, but not drag&drop into kde, nor the import from text file.)