This project is archived and is in readonly mode.
Server hanging when using extreme values for date_select :start_year
Reported by S.D.Eagle | March 26th, 2011 @ 05:58 PM
Did just accidently something like that:
<%= f.date_select :birthday, :start_year => Date.today.year - 100.years , :default => {:year => 1999} %>
the fault is the 100.years, it should be just 100...
but as i tried this out (on mongrel and Webrick) first the application stoped responding and after waiting a minute or so my total ubuntu froze... some kind of exception would be a lot better :-D
Comments and changes to this ticket
-
Dalto Curvelano Junior March 27th, 2011 @ 10:40 AM
This issue occurs because the build_options method loops forever when the range between start_date and end_date is too big.
Pull request created at https://github.com/rails/rails/pull/239
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>