Actions
Bug #8052
closedSmart class parameters with ERB snippets are broken for other that String types
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
Smart class parameters currently have broken validation and type-casting when used with ERB snippets. It tries to validate the value with the ERB without evaluation when key is being saved. It was hacked around it in Staypuft. How to fix it: Validation and type-casting has to be done on classification when ERB can be evaluated; SafeRender needs to be aware of the ERB parameters, they need to be validated and properly type-casted based on the given KeyValue (this association is missing currently).
The hack for Staypuft is in this file https://github.com/theforeman/staypuft/blob/master/app/models/staypuft/concerns/lookup_key_extensions.rb
Updated by Dominic Cleal about 10 years ago
- Category set to Parameters
- Priority changed from High to Normal
Updated by Marek Hulán almost 10 years ago
- Status changed from New to Assigned
- Assignee set to Marek Hulán
Updated by The Foreman Bot almost 10 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2080 added
- Pull request deleted (
)
Updated by Dominic Cleal almost 10 years ago
- Blocked by Bug #9044: Tests can fail randomly on mac.succ added
Updated by Dominic Cleal almost 10 years ago
- Translation missing: en.field_release set to 32
Updated by Dominic Cleal almost 10 years ago
- Related to Refactor #9142: Unify validate_regexp and validate_list for lookup value/key added
Updated by Marek Hulán almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset f8a56f5bd809305080e4ba69113f73f65957a3f9.
Updated by Dominic Cleal over 9 years ago
- Related to Bug #10088: Smart class default parameter interpreted as string added
Updated by Dominic Cleal over 9 years ago
- Related to Bug #9673: YAML type casting fails for lookup values in 1.7.3 added
Updated by Dominic Cleal over 9 years ago
- Related to Bug #9787: Default values of smart class parameters can't be JSON or YAML added
Actions