Bug 751457

Summary: wget gets the file name messed up when downloading from koji
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: wgetAssignee: Karsten Hopp <karsten>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: karsten, micah
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-04 19:27:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Horst H. von Brand 2011-11-04 19:22:19 UTC
Description of problem:
I got a file from koji:
$ wget 'http://koji.fedoraproject.org/koji/getfile?taskID=3488187&name=xpdf-3.03-1.fc16.1.src.rpm'

And the downloaded file is called "getfile?taskID=3488187&name=xpdf-3.03-1.fc16.1.src.rpm"

Version-Release number of selected component (if applicable):
wget-1.12-4.fc16,x86_64

How reproducible:
See above.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
Sane filename..

Additional info:
I'm not sure if the "getfile?" interface is in any way standard, if it is it would be nice to handle it. If it isn't, too bad.

Comment 1 Karsten Hopp 2011-11-04 19:27:29 UTC
you need to add the --content-disposition  parameter