Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-9031

[DX-core] Definitions app should show problem when dialog field $type is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.2.38
    • None
    • None
    • None
    • Yes
    • DevX 43
    • 3
    • Yes

      This ticket is for DX-Core, CFGUI-182 is for SaaS.

      When developer specifies a field $type that does not exist, a useful warning is displayed in the logs, but no "problem" is displayed in the "Definitions app". A problem should be displayed otherwise it is difficult for a developer to find the cause of the problem. 

      The same problem happens on DXCORE and SaaS, but the problem is slightly worse on SaaS as the logs cannot be seen by the developer and the "Configuration Monitor" does not report any problem.

       

      To reproduce:

      Note that "textArea" is not a valid $type here.

      Use the following dialog for a page template: 

       

      label: My Page
      form:
        properties:
          title:
            label: Title
            $type: textField
            i18n: true
          text2:
            label: Test
            $type: textArea
            i18n: true

       

       

      Then create a page of that type and try to edit that page in the page editor. 

      > You get an exception that the page cannot be edited.

      Go to the Definitions App - notice that there are no problems shown in the Definitions or Problems tab for the incorrect dialog.

      Here is the useful warning message in the logs on DXCORE

      2023-06-23 11:38:09,763 WARN  a.config.resolver.AnnotationProcessingTypeResolver: Encountered the '$type' property but failed to resolved the type from its value: [textArea]. Available types: [jcrMultiField,radioButtonGroupField,pageLinkField,staticField,textField,comboBoxField,twinColSelectField,checkBoxField,multiField,switchableField,checkBoxGroupField,jcrMultiLinkField,passwordField,compositeField,listSelectField,richTextField,codeField,resourceLinkField,tokenField,linkField,dateField,uploadField,sliderField,jcrMultiValueField,damLinkField,hiddenField] 

       

        Acceptance criteria

              vrg Valeria Robles-Garzon
              czimmermann Christopher Zimmermann
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

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