[MGNLUI-6375] Remove generic type of default value in ValueBoundProperty Created: 30/Oct/20 Updated: 18/Jun/21 Resolved: 10/May/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.4 |
| Fix Version/s: | 6.2.9 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Aleksandr Pchelintcev | Assignee: | Martin Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | VN-Testing | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 23m | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Template: | |||||||||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||||||||
| Epic Link: | Field default values | ||||||||||||||||||||||||||||||||||||
| Sprint: | UI FW 27, UI FW 28 | ||||||||||||||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||||||||||||||
| Description |
|
Currently the default value type in ValueBoundProperty is bound with the presentation type of the field (generic <T>), but it is typically something else (i.e. the model type). E.g. presentation value of the JCR selects is the Node but the default value is specified as a string. SymptomsThe problem is most prominent when there is a converter between the model and the presentation types is preset. E.g. this: field: $type: textField type: java.lang.Long converterClass: com.vaadin.data.converter.StringToLongConverter defaultValue: !!java.lang.Long 0 In the snippet above will cause a CCE for the following reasons:
Solution:
|
| Comments |
| Comment by Viet Nguyen [ 24/Nov/20 ] |
|
This issue is causing |