Bug 369911 - Download expire time is incorrect
Summary: Download expire time is incorrect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Web Site
Version: RHN Devel
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bryan Kearney
QA Contact: Amy Owens
URL:
Whiteboard:
Depends On:
Blocks: 253918
TreeView+ depends on / blocked
 
Reported: 2007-11-07 17:12 UTC by James Bowes
Modified: 2013-01-10 09:56 UTC (History)
2 users (show)

Fixed In Version: 5.0.4
Clone Of:
Environment:
Last Closed: 2007-12-10 14:37:19 UTC
Embargoed:


Attachments (Terms of Use)

Description James Bowes 2007-11-07 17:12:08 UTC
ISOImage.java is using millisecond time when it should be seconds. this makes
download expiration happen well past the year 30,000.

To deal with the existing tokens out there, we should have
Sniglets::Downloads.pm check for large values and call them expired.

Comment 1 James Bowes 2007-11-07 18:34:33 UTC
Alternatively, only update the java code, and regen the secret tokens in the
configs.

Comment 2 James Bowes 2007-12-05 16:44:31 UTC
To test:
* navigate to a channel with downloads
  ie
https://rhn.webqa.redhat.com/rhn/software/channel/downloads/Download.do?cid=7276
* Get the url from one of the links.
* The first field after download is a number that represents UNIX time.
* Convert this to something human-readable (using for instance this:
http://www.onlineconversion.com/unix_time.htm)
* Ensure that the expire time is within a few minutes/hours (varies in qa v prod
etc), rather than thousands of years from now.


Note You need to log in before you can comment on or make changes to this bug.