Bug 437998

Summary: Trying to reuse a download in rhn-download-manager does not work
Product: [Retired] Red Hat Network Reporter: James Bowes <jbowes>
Component: RHN/BackendAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Amy Owens <aowens>
Severity: low Docs Contact:
Priority: low    
Version: rhn500CC: bkearney, rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: US=19787
Fixed In Version: 5.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-26 20:22:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 446437    

Description James Bowes 2008-03-18 16:27:09 UTC
rhn-download-manager server side has logic to check your csv against what is in
the db and, if one of your downloads already exists in the db but is just
disabled, reuse that row. This logic causes ISEs. (the row seems to be inserted
again, rather than updated, and with missing columns)

Comment 1 Amy Owens 2008-03-19 12:06:23 UTC
added user story to accepted backlog

Comment 2 James Bowes 2008-05-20 17:08:32 UTC
To test:
 * Get the list of downloads for a channel:
   rhn-download-manager --server webdev --list --show-all rhel-i386-server-5 -o
my.csv
   (make sure at least one of these isos actually exists on the filer. if not,
    get jbowes to copy it over.)
 * Remove all of the existing lines except the iso that actually exists.
 * for that iso, set it to be disabled by changing the download type field from 
  'iso' to 'disabled'
 * Upload this info to the server:
   rhn-download-manager --server webdev --upload my.csv
   (you should not get a 500 error here)
 * just for fun, try with --commit as well.

Comment 3 Amy Owens 2008-05-21 18:36:47 UTC
so now in dev when i click on the iso I get a 500 error-- shouldn't it just not
display...
https://rhn.webdev.redhat.com/download/1211395511/c3f06883ba702ee90ee14e1a45e1735214b78e55/5036675/24993/rhn/isos/RHEL5.1/rhel-i386-server-5/rhel-5.1-server-source-disc1.iso

Comment 4 James Bowes 2008-05-22 15:40:41 UTC
500 error should be fixed. (x-repcon was disabled on the proxy)

So, regarding reusing a download, the only thing you can really change is if its
an iso, or disabled. if you change anything else, if makes a new row. This is
why the link to source disc 1 still shows up, because the db contains a new row
for the Amy source disc, which is properly disabled.

Comment 5 Amy Owens 2008-05-23 13:16:55 UTC
ok looks good

Comment 6 Amy Owens 2008-05-23 13:20:30 UTC
disabled and put back to iso-- disc 1... 

Comment 7 Grant Gainey 2008-06-13 15:56:49 UTC
verified