Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-124579

Can not add structrue with Single Selection or Multiple Selection field

    Details

      Description

      Steps to reproduce:

      1. Go to Content&Data > Web Content > Structures
      2. Add a strcuture with Single Selection or Multiple Selection field
      3. Publish is failed

      Actual result:
      Error occurs "Your request failed to complete" when publishing the structure.
      Console error:

      2020-12-07 11:24:04.071 ERROR [http-nio-8080-exec-5][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_com_liferay_journal_web_portlet_JournalPortlet_javax.portlet.action=%2Fjournal%2Fadd_data_definition&_com_liferay_journal_web_portlet_JournalPortlet_mvcPath=%2Fedit_data_definition.jsp&p_p_auth=aZgHD3Zy generates exception: java.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.data.engine.rest.resource.exception.DataDefinitionValidationException$MustSetOptionsForField
      java.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.data.engine.rest.resource.exception.DataDefinitionValidationException$MustSetOptionsForField
              at org.apache.jsp.data_005flayout_005fbuilder.end_jsp._jspService(end_jsp:390)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:368)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
              at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:190)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:407)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:383)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:217)

      Expected result:
      Structure publishes successfully.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            lu.liu Lu Liu
            Participants of an Issue:
            Recent user:
            Tomáš Polešovský
            Engineering Assignee:
            Eudaldo Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks, 6 days ago

                Packages

                Version Package
                Master