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

Documents and Media is temporarily unavailable after editing document type meta data

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Fix Version/s: 6.1.X EE, 6.2.0 CE RC1
    • Component/s: DM, DM > Administration
    • Labels:
      None
    • Environment:
      Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: 0ea0120917695896f25561e3e9fb06f10e4cf3a3.

      Description

      Steps to Reproduce

      1. Admin > Content > Documents and Media.
      2. Manage > Document Types > Add
      3. Name the new Document Type "Document Type Test" and select metadata set "Meeting Metadata"
      4. Publish a new "Document Type Test" named "User Test Document", with "Test" in Title Field, Description, Meeting Name, Time, Location, Description, and Participants text fields.
      5. Go to Manage > Document Types. Edit "Document Type Test". Drag the "text box" over to the right and click remove by "Meeting Metadata".
      6. Attempt to edit and publish the "User Test Document" created earlier.
      7. Assert "Documents and Media is temporarily unavailable." message.

      8. Assert Console Errors

      23:44:37,243 WARN  [http-bio-8080-exec-9][code_jsp:152] {code="404", msg="/html/themes/control_panel/images/dynamic_data_mapping/textarea.png", uri=/html/themes/control_panel/images/dynamic_data_mapping/textarea.png}
      23:44:37,246 WARN  [http-bio-8080-exec-1][code_jsp:152] {code="404", msg="/html/themes/control_panel/images/dynamic_data_mapping/hyperlink.png", uri=/html/themes/control_panel/images/dynamic_data_mapping/hyperlink.png}
      23:46:45,420 WARN  [http-bio-8080-exec-4][code_jsp:152] {code="404", msg="/html/themes/control_panel/images/dynamic_data_mapping/hyperlink.png", uri=/html/themes/control_panel/images/dynamic_data_mapping/hyperlink.png}
      23:46:45,426 WARN  [http-bio-8080-exec-8][code_jsp:152] {code="404", msg="/html/themes/control_panel/images/dynamic_data_mapping/textarea.png", uri=/html/themes/control_panel/images/dynamic_data_mapping/textarea.png}
      23:47:27,269 ERROR [http-bio-8080-exec-5][render_portlet_jsp:97] null
      com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException: No DLFileEntryMetadata exists with the key {DDMStructureId=10487, fileVersionId=10474}
              at com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistenceImpl.findByD_F(DLFileEntryMetadataPersistenceImpl.java:2176)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl.getFileEntryMetadata(DLFileEntryMetadataLocalServiceImpl.java:92)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:186)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.isKeepFileVersionLabel(DLFileEntryLocalServiceImpl.java:2037)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkInFileEntry(DLFileEntryLocalServiceImpl.java:334)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      

      Expected Results:
      After editing the document type's meta data, you should be able to edit and publish any documents created using that document type.

      Actual result:
      Editing a document that has had it's meta data changed causes an error to display and the publish fails.

        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:
                  5 years, 48 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE RC1