[MGNLUI-3673] Field Validator Error Messages for type Double Created: 24/Nov/15 Updated: 08/Mar/21 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 5.3.x, 5.4.x |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Bradley Andersen | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
vaadin conversion exception is properly thrown when we try to put a non-double into a field meant for a double. but we get TMI - stack trace appears as part of the exception message. ideally, the message without the stack trace would be exposed. |
| Comments |
| Comment by Federico Grilli [ 24/Nov/15 ] |
|
Good catch. com.vaadin.ui.AbstractField.getErrorMessage() (line #1061) returns a com.vaadin.server.CompositeErrorMessage.CompositeErrorMessage which apparently is made up by the "short" error message AND the whole stack trace of the underlying cause as a second error. Not sure show how to filter out the second message, because afaics there's nothing differentiating the ErrorMessage object wrapping the stack trace. I may assume that it is always the second error but that depends on how CompositeErrorMessage stores errors internally, therefore not very reliable. |