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

Version 1.0 of JournalArticle is required for enlisting article in control panel

    Details

      Description

      A web content article is only listed in the site adminitration, if the version 1.0 of the article exists.

      To reproduce the bug you can use the following steps:

      1. Start a 6.2.10 Liferay portal
      2. Create and publish a new standard web content article (either by using the display portlet on a layout page or by using the site adminitration portlet)
      3. Edit the article and publish a second version of the article
      4. Delete the version 1.0 by using the article history
      5. List all article in the site adminitration portlet => the new article is missing.
      6. In the server log, the following exception is throw:
        2014-01-31 11:55:29,437 ERROR [http-bio-8180-exec-35][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=b2IoJgN3&p_p_id=15&p_p_lifecycl
        e=2&p_p_state=maximized&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=142508&refererPlid=142648&controlPanelCategory=current_site.content&
        _15_folderId=0&_15_displayStyle=&_15_viewEntries=1&_15_viewFolders=false&_15_struts_action=%2Fjournal%2Fview&_15_navigation=home&_15_entryStart=0&_15_
        entryEnd=20&_15_folderStart=0&_15_folderEnd=20&ajax=1 generates exception: com.liferay.portlet.journal.NoSuchArticleException: No JournalArticle exist
        s with the key {groupId=142508, articleId=159469, version=1.0}
        com.liferay.portlet.journal.NoSuchArticleException: No JournalArticle exists with the key {groupId=142508, articleId=159469, version=1.0}
                at com.liferay.portlet.journal.service.persistence.JournalArticlePersistenceImpl.findByG_A_V(JournalArticlePersistenceImpl.java:24064)
                at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getArticle(JournalArticleLocalServiceImpl.java:1481)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
                at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
                at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
                at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
                at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.getArticle(JournalArticleLocalServiceUtil.java:961)
                at org.apache.jsp.html.portlet.journal.view_005farticle_005fdescriptive_jsp._jspService(view_005farticle_005fdescriptive_jsp.java:619)
                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
                at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
                at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
                at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
                at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
                at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
                at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
                at org.apache.jsp.html.portlet.journal.view_005fentries_jsp._jspx_meth_liferay_002dutil_005finclude_005f1(view_005fentries_jsp.java:2044)
                at org.apache.jsp.html.portlet.journal.view_005fentries_jsp._jspx_meth_c_005fotherwise_005f2(view_005fentries_jsp.java:2020)
                at org.apache.jsp.html.portlet.journal.view_005fentries_jsp._jspService(view_005fentries_jsp.java:1254)
        

      The bug is located in the jsp named view_article_description.jsp: in line 29 the article version 1.0 is used to determine the creation date of the article.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              frickeo Olaf Fricke
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 33 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1