Bug 2803

Summary: bake should not save redirect HTML with the name of the attempted archive
Product: bake Reporter: Tom Henderson <tomh>
Component: bakeAssignee: Daniel Camara <daniel.camara>
Status: PATCH WANTED ---    
Severity: normal CC: ns-bugs
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   

Description Tom Henderson 2017-10-19 19:31:56 EDT
for source archives, when the link is moved (redirect), bake may sometimes download HTML from the redirect but save it with the original filename, which is confusing.

http://www.ccnx.org/releases/ccnx-0.6.2.tar.gz

raises a download error, but leaves a plain text file with the target name.  The file has some HTML (from a redirect):

$ cat source/ccnx-0.6.2.tar.gz

<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8"/>
<title>Cicn - fd.io</title>
...