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

Publishing a Second Blogs Entry with a Future Display Date causes exceptions

    Details

      Description

      Publishing a Secondary Blogs Entry with a Future Display Date causes the portlet to be unavailable.

      Steps to reproduce:

      1. Add Blogs portlet
      2. Add Blog Entry 1
      3. Set Display Date two minutes into the future
      4. Publish Blog Entry 1
      5. Wait for two minutes
      6. Assert that Blog Entry 1 displays
      7. Add Blog Entry 2
      8. Set Display Date two minutes into the future
      9. Publish Blog Entry 2
      10. FAIL - Errors and exceptions display. Second Blog Entry does not publish and the First Entry no longer displays.

      The root cause of this error is that for future entries there will be no BlogsStatsUser record created. Digging into the issue revealed some more problems around future blog entries:

      • When adding a future blog entry, in the Recent Bloggers portlet there will be no record created when we reach the display date
      • In the activities portlet there will be an activity for the future entry - it shouldn't display anything until the entry becomes visible.
      • Future blog entries are being indexed automatically and a search portlet will pop those up but it shouldn't.
      • Create a blog entry with a display date now, then create a second blog entry in the future. A guest can go to the page clicking on the displayed blog entry and click on the next link at the bottom of the page and it will show the guest the second future blog entry. This guest can even comment on the future entry or use one of the social links (tweet, facebook like, etc)
      • The UI doesn't show clearly what entry is in the future.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 48 weeks, 5 days ago