Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-312

Exporting Site Pages with Audience Targeting data throws error when All Content is selected

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: Content Targeting
    • Labels:
      None

      Description

      This is affecting RC5

      Steps to reproduce:

      1. Add a User Segment
      2. Add a Web Content article with the User Segment categorized to it
      3. Add a page
      4. Add a User Segment Content Display portlet and configure it to display the User Segment and the WC article created above
      5. Navigate to Admin > Site Administration: Pages
      6. Export the Site
        • Leave the settings to All Applications and All Content
        • Click Export

      Expected result:
      Content will Export without any errors.

      Actual result:
      Export completes with a 'Successful' message, but still throws the following console error:

      16:05:18,894 ERROR [BufferedIncreament-DLFolderLocalService.updateLastPostDate(long,Date)-2][BufferedIncrementRunnable:68] Unable to write buffered increment value to the database
      com.liferay.portlet.documentlibrary.NoSuchFolderException: No DLFolder exists with the primary key 20758
              at com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistenceImpl.findByPrimaryKey(DLFolderPersistenceImpl.java:9527)
              at com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistenceImpl.findByPrimaryKey(DLFolderPersistenceImpl.java:9545)
              at com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl.updateLastPostDate(DLFolderLocalServiceImpl.java:1039)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.increment.BufferedIncreasableEntry.proceed(BufferedIncreasableEntry.java:48)
              at com.liferay.portal.increment.BufferedIncrementRunnable.run(BufferedIncrementRunnable.java:65)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

      However, if the user goes in to the Choose Content, they will notice that Audience Targeting isn't selected by default, and when flagging that checkbox, it fixes the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.wulbern Brian Wulbern
                Reporter:
                brian.wulbern Brian Wulbern
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  1.1