[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: File insects-app.yaml     File insects-ct.yaml     PNG File validation-exception.png    
Issue Links:
Problem/Incident
Relates
relates to MGNLUI-5772 Streamline/revisit implementations of... Closed
relates to PAGES-247 Add page dialog throws exception on e... Closed
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

  • Use the attached app and content-type file.
  • Log out and log in again
  • Open the app and add an item
  • enter values and try to save.
  • Get exception.

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.

Generated at Mon Feb 12 09:30:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.