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

Asset Publisher fails to render web contents if there is no associated display page and friendlyURL is translated

    Details

    • Fix Priority:
      5

      Description

      • Create a basic web content. Set the title to "Title" and content to "Content".
      • Translate it into Spanish: set title to "Título" (note the accent) and the content to "Contenido".
      • Save. Ensure friendlyURL is also translated and has some non-ascii character (/título)
      • Make sure there is no display page associated to basic web contents so they will be rendered by the asset publisher
      • Drop an AP widget and click on the content. In the default site language, you'll see the content in the AP
      • Change the language (via URL) to a different one and click in the content again,

       Expected: spanish translation is shown in the asset publisher

       Observed: an error is thrown (Asset publisher is temporarily unavailable), with the exception

      2019-03-21 12:50:47.787 ERROR [http-nio-8080-exec-3][render_portlet_jsp:131] null
      com.liferay.journal.exception.NoSuchArticleException: No JournalArticle exists with the key {groupId=20126, urlTitle=título, status=-1}
      at com.liferay.journal.service.impl.JournalArticleLocalServiceImpl.getLatestArticleByUrlTitle(JournalArticleLocalServiceImpl.java:3448)
      at com.liferay.journal.service.impl.JournalArticleLocalServiceImpl.getArticleByUrlTitle(JournalArticleLocalServiceImpl.java:2044)
      at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      at com.liferay.journal.service.JournalArticleLocalServiceWrapper.getArticleByUrlTitle(JournalArticleLocalServiceWrapper.java:1187)
      at com.liferay.journal.change.tracking.internal.service.CTJournalArticleLocalServiceWrapper.getArticleByUrlTitle(CTJournalArticleLocalServiceWrapper.java:602)
      at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
      at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:59)
      at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:51)
      at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:44)
      at com.liferay.journal.web.asset.JournalArticleAssetRendererFactory.getAssetRenderer(JournalArticleAssetRendererFactory.java:139)
      at org.apache.jsp.view_005fcontent_jsp._jspService(view_005fcontent_jsp:348)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      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)

      Tested in master at 6d30aff6c2aebac750c630c0675d00eed025ca97

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  33 weeks, 3 days ago

                  Packages

                  Version Package