Actions
Bug #14476
closedCaster fails with incorrect exception trying to cast invalid real from string
Description
attempting to cast a string that isn't a valid real number leads to the exception:
Error while parsing smartvar | NoMethodError: undefined method `cast_value_integer' for #<Foreman::Parameters::Caster:0x000000107a4da0> | /home/tbrisker/foreman/app/services/foreman/parameters/caster.rb:84:in `cast_real' | /home/tbrisker/foreman/app/services/foreman/parameters/caster.rb:33:in `casted_value' | /home/tbrisker/foreman/app/services/foreman/parameters/caster.rb:17:in `cast!' | /home/tbrisker/foreman/app/models/lookup_value.rb:71:in `validate_and_cast_value' ... snipped rest of stacktrace
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3390 added
Updated by Anonymous almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b953c6ae5390adb93e44c6778017373795c9bc63.
Updated by Dominic Cleal almost 9 years ago
- Related to Refactor #10232: move validations and casting out of lookup keys and values into single-responsibility classes added
Updated by Dominic Cleal almost 9 years ago
- Category set to Parameters
- Translation missing: en.field_release set to 141
Actions