Details

    Description

      Step to reproduce:

      1. Add a web content structure with an Image field
      2. Add a dynamic collection for Web Content Article and All Subtypes
      3. Expand the Source section
      4. Select the Web Content Article and new structure
      5. Switch Filter by Field to true
      6. Click Select button

      Step to reproduce:

      1. Add a web content structure with an Image field
      2. Add a widget page
      3. Add an Asset Publisher to page
      4. Click the ellipsis button of Asset Publisher > Configuration
      5. Expand the Source section
      6. Select the Web Content Article and new structure
      7. Switch Filter by Field to true
      8. Click Select button

      Expected Results:
      The Image field should be shown in select modal.

      Actual Results:
      The Field cell is empty and the following error thrown.

      2021-10-12 00:45:59.201 ERROR [http-nio-8080-exec-3][runtime:59] Error executing FreeMarker template
      freemarker.core._TemplateModelException: Failed to set JSP tag parameter "required" (declared type: boolean, actual value's type: Null). See cause exception for the more specific cause...
      
      ----
      FTL stack trace ("~" means nesting-related):
              - Failed at: @liferay_aui.input label="image-descr...  [in template "com.liferay.dynamic.data.mapping.service_6.0.28_CLASS_LOADER_CONTEXT_com/liferay/dynamic/data/mapping/service/dependencies/ddm/image.ftl" at line 87, column 17]
              - Reached through: @liferay_aui["field-wrapper"] cssClas...  [in template "com.liferay.dynamic.data.mapping.service_6.0.28_CLASS_LOADER_CONTEXT_com/liferay/dynamic/data/mapping/service/dependencies/ddm/image.ftl" at line 31, column 1]
      ----
              at freemarker.ext.jsp.JspTagModelBase.setupTag(JspTagModelBase.java:132) ~[bundleFile:?]
              at freemarker.ext.jsp.TagTransformModel.getWriter(TagTransformModel.java:69) ~[bundleFile:?]
              at freemarker.core.Environment.visitAndTransform(Environment.java:485) ~[bundleFile:?]
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:103) ~[bundleFile:?]
              at freemarker.core.Environment.visit(Environment.java:367) ~[bundleFile:?]
              at freemarker.core.Environment.visitAndTransform(Environment.java:496) ~[bundleFile:?]
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:103) ~[bundleFile:?]
              at freemarker.core.Environment.visit(Environment.java:331) ~[bundleFile:?]
              at freemarker.core.Environment.visit(Environment.java:337) ~[bundleFile:?]
              at freemarker.core.Environment.process(Environment.java:310) ~[bundleFile:?]
              at freemarker.template.Template.process(Template.java:383) ~[bundleFile:?]
              at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.lambda$processTemplate$0(FreeMarkerTemplate.java:157) ~[bundleFile:?]
              at com.liferay.portal.template.freemarker.internal.FreeMarkerManager.render(FreeMarkerManager.java:524) ~[bundleFile:?]
              at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:144) ~[bundleFile:?]
              at com.liferay.portal.template.BaseTemplate.processTemplate(BaseTemplate.java:139) ~[portal-impl.jar:?]
              at com.liferay.dynamic.data.mapping.internal.render.DDMFormFieldFreeMarkerRenderer.processFTL(DDMFormFieldFreeMarkerRenderer.java:709) ~[?:?]
              at com.liferay.dynamic.data.mapping.internal.render.DDMFormFieldFreeMarkerRenderer.processFTL(DDMFormFieldFreeMarkerRenderer.java:694) ~[?:?]
              at com.liferay.dynamic.data.mapping.internal.render.DDMFormFieldFreeMarkerRenderer.getFieldHTML(DDMFormFieldFreeMarkerRenderer.java:407) ~[?:?]
              at com.liferay.dynamic.data.mapping.internal.render.DDMFormFieldFreeMarkerRenderer.render(DDMFormFieldFreeMarkerRenderer.java:94) ~[?:?]
              at org.apache.jsp.html_005ffield.start_jsp._jspService(start_jsp.java:269) ~[?:?]
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) ~[jasper.jar:9.0.53]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411) ~[jasper.jar:9.0.53]
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) ~[jasper.jar:9.0.53]
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377) ~[jasper.jar:9.0.53]
      

      Reproduced on:
      Tomcat 9.0.53 + MySQL 5.7. Portal master GIT ID: 3cadf0ad0436a8b4d0e7ed47809ead8e9816e521.

      Attachments

        Issue Links

          Activity

            People

              yang.cao Yang Cao
              yang.cao Yang Cao
              Sophia Zhang Sophia Zhang
              Istvan Dezsi Istvan Dezsi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                48 weeks, 2 days ago

                Packages

                  Version Package
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  7.4.3.5 CE GA5
                  7.4.13 DXP U1
                  Master