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

Error during displaying task for denied document library fileEntry

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.0.6 GA
    • Fix Version/s: None
    • Component/s: DM
    • Labels:
      None
    • Environment:
      Liferay 6.0.6 with Workflow process configured for document library
    • Liferay Contributor's Agreement:
      Accept

      Description

      1. Configure Worflow Setting to use some process for Document Library. This process should have "Denied" step - to put status of document into "Denied"
      2. Create document - it will be passed into workflow instance
      3. Go through workflow and "Deny" document
      4. Go to user, denined document -> My Workflow Tasks -> Completed - there should be a task related to denied document - try to open it
      5. You will get error like:

      10:47:15,558 ERROR [IncludeTag:231] Current URL /group/control_panel/manage?p_p_id=153&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&refererPlid=10160&_153_refererPlid=10160&_153_workflowTaskId=411&_153_struts_action=%2Fmy_workflow_tasks%2Fedit_workflow_task&_153_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D153%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26refererPlid%3D10160%26_153_refererPlid%3D10160 generates exception: javax.servlet.ServletException: com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key

      {classNameId=10073, classPK=10513}
      10:47:15,562 ERROR [IncludeTag:154] com.liferay.portlet.asset.NoSuchEntryException: No AssetEntry exists with the key {classNameId=10073, classPK=10513}

      at com.liferay.portlet.asset.service.persistence.AssetEntryPersistenceImpl.findByC_C(AssetEntryPersistenceImpl.java:1049)
      at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.getEntry(AssetEntryLocalServiceImpl.java:209)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:82)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil.getEntry(AssetEntryLocalServiceUtil.java:309)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:175)

      The thing is: classNameId - is id for DLFileEntry, but classPK is not from DLFileEntry - but from related DLFileVersion
      So, we trying to find asset with className from DLFileEntry but PK from DLFileVersion - and of course it is failed

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 27 weeks ago

                Packages

                Version Package