Bug 1323292 - Invalid date/time crashes appliance_console
Summary: Invalid date/time crashes appliance_console
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.6.0
Assignee: Joe Vlcek
QA Contact: luke couzens
URL:
Whiteboard: cli:black:appliance
Depends On:
Blocks: 1327727
TreeView+ depends on / blocked
 
Reported: 2016-04-01 18:20 UTC by luke couzens
Modified: 2016-06-29 15:47 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1327727 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:47:03 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description luke couzens 2016-04-01 18:20:46 UTC
Description of problem: setting the date incorrectly crashes out appliance_console


Version-Release number of selected component (if applicable):5.5.3.2


How reproducible:100%


Steps to Reproduce:
1.ssh into appliance
2.start appliance_console
3.select Set Timezone, Date, and Time
4.select timezone
5.set date with invalid day 
6.set time
7.say yes to configuration

Actual results:appliance_console crash


Expected results:invalid date/time supplied


Additional info: date/time I used

Date and Time Configuration

        Timezone area: America
        Timezone city: New_York
        Date:          2016-03-65
        Time:          22:50:13

Apply time and timezone configuration? (Y/N): y
Applying time and timezone configuration...
/opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:300:in `local': argument out of range (ArgumentError)
	from /opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:300:in `make_time'
	from /opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:364:in `parse'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:307:in `block in <module:ApplianceConsole>'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:114:in `loop'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:114:in `<module:ApplianceConsole>'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:98:in `<main>'
[root@host-192-168-100-77 ~]#

Comment 2 Joe Vlcek 2016-04-04 17:49:45 UTC
This issue will be resolved as a side effect of the fix for:
https://bugzilla.redhat.com/show_bug.cgi?id=1318752

Comment 4 luke couzens 2016-04-26 17:57:48 UTC
Verified in 5.6.0.4-beta2.3

Comment 6 errata-xmlrpc 2016-06-29 15:47:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


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