Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5874

Cannot save item in CT created app. Validation exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 6.2.2
    • None
    • None
    • None

      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
      
      
      
      

        Acceptance criteria

          1. insects-app.yaml
            0.1 kB
          2. insects-ct.yaml
            0.2 kB
          3. validation-exception.png
            validation-exception.png
            220 kB

              asiska Adam Siska
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1h
                    1h