Bug 781836

Summary: RFE: Sanity Check on System Date
Product: [Fedora] Fedora Reporter: Chris Tyler <ctyler.fedora>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ctyler.fedora, ffesti, james.antill, jzeleny, maxamillion, tla
Target Milestone: ---Flags: akozumpl: needinfo? (ctyler.fedora)
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 21:29:59 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 Chris Tyler 2012-01-15 15:57:39 UTC
Description of problem:
On machines with no RTC, or a bad RTC, the bad system date will cause certificate errors when retrieving the mirrorlist. The error messages produced are unclear that the date is the actual problem.

This is particularly going to be a problem when the Raspberry Pi is distributed in large number to new users (probably millions), since the Pi does not have an RTC. If a date sanity check was added to yum with an appropriate error message, it could save a *lot* of support cycles.

Steps to Reproduce:
1. Set the system date to Jan 1, 1970.
2. Run yum (anything that fetches the mirrorlist)
  
Actual results:
- Error message about certificates.

Desired results:
- Error message about date, something like:
"The current system date is invalid. Please set the date accurately."

Additional info:
A simple sanity check, such as year>2010, should suffice.

Comment 1 Ales Kozumplik 2014-04-24 08:36:21 UTC
Chris is this still a valid request?

Comment 2 Daniel Mach 2018-07-18 21:29:59 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.

Comment 3 Daniel Mach 2018-07-18 21:33:02 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.