[MGNLUI-5874] Cannot save item in CT created app. Validation exception Created: 07/May/20 Updated: 26/Jun/20 Resolved: 17/Jun/20 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Christopher Zimmermann | Assignee: | Adam Siska |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1h | ||
| 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: | |||||||||||||||||
| Epic Link: | UI framework implementation | ||||||||||||||||
| Sprint: | UI FW 4 | ||||||||||||||||
| Story Points: | 5 | ||||||||||||||||
| Description |
|
In a content-type based app in M6.2, with just one a required text property 'name', there is an exception when you try to save. To reproduce
Note: However if you remove 'required: true' from the 'name' property, then it is able to save successfully.
Validation has failed for some fields RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc caused by InvocationTargetException caused by MethodException: Invocation of method buttonClick in info.magnolia.ui.dialog.ActionButton$$Lambda$1968/1538698800 failed. caused by RuntimeException: info.magnolia.ui.api.action.ActionExecutionException: Action execution failed for action: commit caused by ActionExecutionException: Action execution failed for action: commit caused by IllegalStateException: Failed to write form state caused by ValidationException: Validation has failed for some fields |
| Comments |
| Comment by Aleksandr Pchelintcev [ 07/May/20 ] |
|
It shouldn't trigger validation of the un-changed fields for non-default languages. What's more alarming is that those shouldn't be written either. |