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

Unable to change in a web content a removed Document

    Details

      Description

      Steps to Reproduce:

      1. Create a structure, named S1, with a Documents and Media field.
      2. Create a Basic Document.
      3. Create a Web Content based on S1 adding previous document in the Documents and Media field.
      4. Remove the created Basic Document.
      5. Try to edit again the created web content

      Expected Result:
      The Documents and Media field should appear empty offering the option to change its value.

      Actual Result:
      The field isn't displayed.

      Log Error in 7.1 fp6:

      2019-02-07 16:38:19.260 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=0&p_p_state=maximized&p_p_mode=view&_com_liferay_journal_web_portlet_JournalPortlet_mvcPath=%2Fedit_article.jsp&_com_liferay_journal_web_portlet_JournalPortlet_redirect=http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fguest%2F~%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_journal_web_portlet_JournalPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DV4bMtW2R&_com_liferay_journal_web_portlet_JournalPortlet_referringPortletResource=&_com_liferay_journal_web_portlet_JournalPortlet_groupId=20126&_com_liferay_journal_web_portlet_JournalPortlet_folderId=0&_com_liferay_journal_web_portlet_JournalPortlet_articleId=37471&_com_liferay_journal_web_portlet_JournalPortlet_version=1.0&p_p_auth=V4bMtW2R generates exception: com.liferay.portal.kernel.exception.PortalException: com.liferay.portal.kernel.template.TemplateException: Unable to process template com/liferay/dynamic/data/mapping/dependencies/ddm/documentlibrary.ftl
      com.liferay.document.library.kernel.exception.NoSuchFileEntryException: No DLFileEntry exists with the key {uuid=8d3bc0e8-b67b-8194-58b9-534e7603e8d1, groupId=20126}
      	at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFileEntryByUuidAndGroupId(DLAppServiceImpl.java:1181)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:113)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
      	at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
      	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
      	at freemarker.core.MethodCall._eval(MethodCall.java:62)
      	at freemarker.core.Expression.eval(Expression.java:78)
      	at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:80)
      Listening for transport dt_socket at address: 8000
      2019-02-07 16:43:14.674 WARN  [HikariPool-1 housekeeper][HikariPool:686] HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=3m20s630ms).
      2019-02-07 16:43:14.674 WARN  [HikariPool-2 housekeeper][HikariPool:686] HikariPool-2 - Thread starvation or clock leap detected (housekeeper delta=3m20s630ms).
      2019-02-07 16:43:45.329 ERROR [http-nio-8080-exec-10][runtime:60] Error executing FreeMarker template
      FreeMarker template error:
      Java method "com.sun.proxy.$Proxy91.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy91 object "com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl@4e3c2c5b"; see cause exception in the Java stack trace.
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #return dlAppServiceUtil.getFileEntry...  [in template "com/liferay/dynamic/data/mapping/dependencies/init.ftl" in function "getFileEntry" at line 160, column 9]
      	- Reached through: fileEntry = getFileEntry(fileJSONObject)  [in template "com/liferay/dynamic/data/mapping/dependencies/ddm/documentlibrary.ftl" at line 17, column 17]
      	- Reached through: #assign-container  [in template "com/liferay/dynamic/data/mapping/dependencies/ddm/documentlibrary.ftl" at line 14, column 9]
      ----

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  30 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP7
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master