Entering a very large number for idle_timeout is unchecked, crashes UI
|Assigned To:||Ori Rabin|
|Target version:||Sprint 26|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/1582|
|Velocity based estimate||-|
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1113349
Description of problem:
Idle timeouts can be distracting. Thus, uf a user enters a very large number in the config settings for idle_timeout, there is no bounds testing and the UI crashes.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In config settings, change the idle_timeout value to something large like "9999999"
2. Begin navigating elsewhere in UI.
3. View results
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
ArgumentError (year too big to marshal: 192146 UTC):
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
Sane bounds testing of this field (and all others!).